Hello everyone,

I am trying the example for FFmpeg 3, but I get the following error:

seaguest@DEV:~/ffmpeg_sources/FFmpeg/doc/examples$ make all
cc -I/usr/local/include -Wall -g   -c -o muxing.o muxing.c
muxing.c: In function ‘open_audio’:
muxing.c:250:11: warning: implicit declaration of function ‘avcodec_parameters_from_context’ [-Wimplicit-function-declaration]
     ret = avcodec_parameters_from_context(ost->st->codecpar, c);
           ^
muxing.c:250:50: error: ‘AVStream {aka struct AVStream}’ has no member named ‘codecpar’
     ret = avcodec_parameters_from_context(ost->st->codecpar, c);
                                                  ^
muxing.c: In function ‘open_video’:
muxing.c:432:50: error: ‘AVStream {aka struct AVStream}’ has no member named ‘codecpar’
     ret = avcodec_parameters_from_context(ost->st->codecpar, c);
                                                  ^
<builtin>: recipe for target 'muxing.o' failed
make: *** [muxing.o] Error 1


It said the AVStream doesn't have the codecpar member, but I checked the avformat.h, I do see the codecpar in AVStream, could anyone help?

best regards

Yongkan
_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to