The solution requires accessing an lavu internal, which may not be a good example for ffmpeg as a library user. --- ffmpeg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ffmpeg.c b/ffmpeg.c index 9b7d585..271a638 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -60,6 +60,7 @@ #include "libavutil/bprint.h" #include "libavutil/time.h" #include "libavutil/threadmessage.h" +#include "libavutil/internal.h" #include "libavformat/os_support.h" #include "libavformat/ffm.h" // not public API @@ -1965,7 +1966,7 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output) if (ist->dec_ctx->codec_id == AV_CODEC_ID_H264) { ist->st->codec->has_b_frames = ist->dec_ctx->has_b_frames; } else - av_log_ask_for_sample( + avpriv_request_sample( ist->dec_ctx, "has_b_frames is larger in decoder than demuxer %d > %d ", ist->dec_ctx->has_b_frames, -- 1.9.2.msysgit.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel