ffmpeg: replace deprecated av_log_ask_for_sample with av_log
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
This commit is contained in:
parent
13b3462b7a
commit
9c29aa7143
@ -2040,7 +2040,10 @@ double get_rotation(AVStream *st)
|
|||||||
theta -= 360*floor(theta/360 + 0.9/360);
|
theta -= 360*floor(theta/360 + 0.9/360);
|
||||||
|
|
||||||
if (fabs(theta - 90*round(theta/90)) > 2)
|
if (fabs(theta - 90*round(theta/90)) > 2)
|
||||||
av_log_ask_for_sample(NULL, "Odd rotation angle\n");
|
av_log(NULL, AV_LOG_WARNING, "Odd rotation angle.\n"
|
||||||
|
"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)");
|
||||||
|
|
||||||
return theta;
|
return theta;
|
||||||
}
|
}
|
||||||
|
13
ffmpeg.c
13
ffmpeg.c
@ -2063,12 +2063,13 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output)
|
|||||||
if (ist->dec_ctx->codec_id == AV_CODEC_ID_H264) {
|
if (ist->dec_ctx->codec_id == AV_CODEC_ID_H264) {
|
||||||
ist->st->codec->has_b_frames = ist->dec_ctx->has_b_frames;
|
ist->st->codec->has_b_frames = ist->dec_ctx->has_b_frames;
|
||||||
} else
|
} else
|
||||||
av_log_ask_for_sample(
|
av_log(ist->dec_ctx, AV_LOG_WARNING,
|
||||||
ist->dec_ctx,
|
"has_b_frames is larger in decoder than demuxer %d > %d.\n"
|
||||||
"has_b_frames is larger in decoder than demuxer %d > %d ",
|
"If you want to help, upload a sample "
|
||||||
ist->dec_ctx->has_b_frames,
|
"of this file to ftp://upload.ffmpeg.org/incoming/ "
|
||||||
ist->st->codec->has_b_frames
|
"and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)",
|
||||||
);
|
ist->dec_ctx->has_b_frames,
|
||||||
|
ist->st->codec->has_b_frames);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (*got_output || ret<0)
|
if (*got_output || ret<0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user