]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h264_slice.c
avcodec/motionpixels: use av_mallocz_array()
[ffmpeg] / libavcodec / h264_slice.c
index 17557d15383e5e5c4611b2c1d16e27e97e7f44bd..1234168a1fc6387e95775093ab1e1239b7c92ee3 100644 (file)
@@ -1420,10 +1420,7 @@ int ff_h264_decode_slice_header(H264Context *h, H264Context *h0)
     }
 
     if (h->context_initialized &&
-        (h->width  != h->avctx->coded_width   ||
-         h->height != h->avctx->coded_height  ||
-         must_reinit ||
-         needs_reinit)) {
+        (must_reinit || needs_reinit)) {
         if (h != h0) {
             av_log(h->avctx, AV_LOG_ERROR,
                    "changing width %d -> %d / height %d -> %d on "