diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-12-27 18:16:36 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2017-01-09 13:21:13 +0100 |
commit | e7de05f98f630b5b3a5e441c8fa763e6d89b8851 (patch) | |
tree | d671b64061df3ab0f8bdeed9bceb39d83aee01c5 /libavcodec | |
parent | 3cba1ad76d362c994fa98fb686e04e20826fb579 (diff) | |
download | ffmpeg-e7de05f98f630b5b3a5e441c8fa763e6d89b8851.tar.gz |
h264dec: drop a redundant check
Cropping parameters are already checked for validity during SPS parsing,
no need to check them again.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/h264_slice.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index db7628cf97..1b35c2baaf 100644 --- a/libavcodec/h264_slice.c +++ b/libavcodec/h264_slice.c @@ -803,23 +803,6 @@ static int init_dimensions(H264Context *h) height = h->avctx->height; } - if (width <= 0 || height <= 0) { - av_log(h->avctx, AV_LOG_ERROR, "Invalid cropped dimensions: %dx%d.\n", - width, height); - if (h->avctx->err_recognition & AV_EF_EXPLODE) - return AVERROR_INVALIDDATA; - - av_log(h->avctx, AV_LOG_WARNING, "Ignoring cropping information.\n"); - sps->crop_bottom = - sps->crop_top = - sps->crop_right = - sps->crop_left = - sps->crop = 0; - - width = h->width; - height = h->height; - } - h->avctx->coded_width = h->width; h->avctx->coded_height = h->height; h->avctx->width = width; |