avplay.c:60:28: warning: ‘enum CodecID’ declared inside parameter list will not be visible outside of this definition or declaration
static int map_vcodec(enum CodecID id)
^~~
avplay.c:60:36: error: parameter 1 (‘id’) has incomplete type
static int map_vcodec(enum CodecID id)
^~
avplay.c: In function ‘map_vcodec’:
avplay.c:64:13: error: ‘CODEC_ID_MPEG2VIDEO’ undeclared (first use in this function)
case CODEC_ID_MPEG2VIDEO:
^~~~~~~
avplay.c:64:13: note: each undeclared identifier is reported only once for each function it appears in
avplay.c:65:13: error: ‘CODEC_ID_MPEG2VIDEO_XVMC’ undeclared (first use in this function)
case CODEC_ID_MPEG2VIDEO_XVMC:
^~~~~~~~
avplay.c:68:13: error: ‘CODEC_ID_H264’ undeclared (first use in this function)
case CODEC_ID_H264:
^~~~~
avplay.c: At top level:
avplay.c:81:28: warning: ‘enum CodecID’ declared inside parameter list will not be visible outside of this definition or declaration
static int map_acodec(enum CodecID id)
^~~
avplay.c:81:36: error: parameter 1 (‘id’) has incomplete type
static int map_acodec(enum CodecID id)
^~
avplay.c: In function ‘map_acodec’:
avplay.c:85:13: error: ‘CODEC_ID_MP2’ undeclared (first use in this function)
case CODEC_ID_MP2:
^~~~
avplay.c:86:13: error: ‘CODEC_ID_MP3’ undeclared (first use in this function)
case CODEC_ID_MP3:
^~~~
avplay.c:89:13: error: ‘CODEC_ID_AC3’ undeclared (first use in this function)
case CODEC_ID_AC3:
^~~~
avplay.c:92:13: error: ‘CODEC_ID_AAC’ undeclared (first use in this function)
case CODEC_ID_AAC:
^~~~
avplay.c: In function ‘avplay_thread’:
avplay.c:137:12: warning: return makes pointer from integer without a cast [-Wint-conversion]
return 1;
^
avplay.c:176:62: error: ‘CODEC_ID_AAC’ undeclared (first use in this function)
if (fmt_ctx->streams[audio_stream_idx]->codec->codec_id == CODEC_ID_AAC) {
^~~~
avplay.c:326:5: warning: ‘av_free_packet’ is deprecated [-Wdeprecated-declarations]
av_free_packet(&pkt);
^~~~~~
In file included from /usr/include/libavformat/avformat.h:318:0,
from avplay.c:25:
/usr/include/libavcodec/avcodec.h:4040:6: note: declared here
void av_free_packet(AVPacket pkt);
^~~~~~
make: ** [Makefile:117: /root/pidvbip/build.linux/avplay.o] Error 1
any ideas?
avplay.c:60:28: warning: ‘enum CodecID’ declared inside parameter list will not be visible outside of this definition or declaration static int map_vcodec(enum CodecID id) ^
~~ avplay.c:60:36: error: parameter 1 (‘id’) has incomplete type static int map_vcodec(enum CodecID id) ^~ avplay.c: In function ‘map_vcodec’: avplay.c:64:13: error: ‘CODEC_ID_MPEG2VIDEO’ undeclared (first use in this function) case CODEC_ID_MPEG2VIDEO: ^~~~~~~ avplay.c:64:13: note: each undeclared identifier is reported only once for each function it appears in avplay.c:65:13: error: ‘CODEC_ID_MPEG2VIDEO_XVMC’ undeclared (first use in this function) case CODEC_ID_MPEG2VIDEO_XVMC: ^~~~~~~~ avplay.c:68:13: error: ‘CODEC_ID_H264’ undeclared (first use in this function) case CODEC_ID_H264: ^~~~~ avplay.c: At top level: avplay.c:81:28: warning: ‘enum CodecID’ declared inside parameter list will not be visible outside of this definition or declaration static int map_acodec(enum CodecID id) ^~~ avplay.c:81:36: error: parameter 1 (‘id’) has incomplete type static int map_acodec(enum CodecID id) ^~ avplay.c: In function ‘map_acodec’: avplay.c:85:13: error: ‘CODEC_ID_MP2’ undeclared (first use in this function) case CODEC_ID_MP2: ^~~~ avplay.c:86:13: error: ‘CODEC_ID_MP3’ undeclared (first use in this function) case CODEC_ID_MP3: ^~~~ avplay.c:89:13: error: ‘CODEC_ID_AC3’ undeclared (first use in this function) case CODEC_ID_AC3: ^~~~ avplay.c:92:13: error: ‘CODEC_ID_AAC’ undeclared (first use in this function) case CODEC_ID_AAC: ^~~~ avplay.c: In function ‘avplay_thread’: avplay.c:137:12: warning: return makes pointer from integer without a cast [-Wint-conversion] return 1; ^ avplay.c:176:62: error: ‘CODEC_ID_AAC’ undeclared (first use in this function) if (fmt_ctx->streams[audio_stream_idx]->codec->codec_id == CODEC_ID_AAC) { ^~~~ avplay.c:326:5: warning: ‘av_free_packet’ is deprecated [-Wdeprecated-declarations] av_free_packet(&pkt); ^~~~~~ In file included from /usr/include/libavformat/avformat.h:318:0, from avplay.c:25: /usr/include/libavcodec/avcodec.h:4040:6: note: declared here void av_free_packet(AVPacket pkt); ^~~~~~ make: ** [Makefile:117: /root/pidvbip/build.linux/avplay.o] Error 1