summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-03 15:09:42 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-03 15:24:00 +0200
commit768ef0f19e4f553a307f4b5e16d252a32d5dd8d3 (patch)
treea1a8d750efc77a88b64027338400bf8ca035d49c /ffmpeg.c
parenta0b2de77ed30bcf42cee73688cd3acc4a19004fc (diff)
ffmpeg: request sample if the decoder & demuxer has_b_frames mismatch
We cannot use avpriv_request_sample() as this is private to the libs or rather it would be a bad usage example Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index acfefe32d1..dec26ce7b2 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1863,6 +1863,12 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output)
// The following line may be required in some cases where there is no parser
// or the parser does not has_b_frames correctly
// ist->st->codec->has_b_frames = ist->dec_ctx->has_b_frames;
+ if (ist->st->codec->has_b_frames < ist->dec_ctx->has_b_frames) {
+ av_log(ist->dec_ctx, AV_LOG_WARNING, "has_b_frames is larger in decoder than demuxer");
+ av_log(ist->dec_ctx, AV_LOG_WARNING, "If you want to help, upload a sample "
+ "of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ "
+ "and contact the ffmpeg-devel mailing list.\n");
+ }
if (*got_output || ret<0 || pkt->size)
decode_error_stat[ret<0] ++;