You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
avcodec/utils: Print warning if avcodec_set_dimensions() failed
Fixes CID1135744 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@ -222,7 +222,10 @@ unsigned avcodec_get_edge_width(void)
|
|||||||
#if FF_API_SET_DIMENSIONS
|
#if FF_API_SET_DIMENSIONS
|
||||||
void avcodec_set_dimensions(AVCodecContext *s, int width, int height)
|
void avcodec_set_dimensions(AVCodecContext *s, int width, int height)
|
||||||
{
|
{
|
||||||
ff_set_dimensions(s, width, height);
|
int ret = ff_set_dimensions(s, width, height);
|
||||||
|
if (ret < 0) {
|
||||||
|
av_log(s, AV_LOG_WARNING, "Failed to set dimensions %d %d\n", width, height);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user