ffmpeg: use av_log_ask_for_sample() instead of duplicating avpriv_request_sample()

pull/76/merge
Michael Niedermayer 11 years ago
parent 2422a7ffe4
commit 576654302b
  1. 5
      ffmpeg.c

@ -1864,10 +1864,7 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output)
// 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/incoming/ "
"and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)\n");
av_log_ask_for_sample(ist->dec_ctx, "has_b_frames is larger in decoder than demuxer");
}
if (*got_output || ret<0 || pkt->size)

Loading…
Cancel
Save