h264: Remove an assert on current_picture_ptr being null
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 6 Aug 2012 22:18:59 +0000 (00:18 +0200)
committerMartin Storsjö <martin@martin.st>
Wed, 5 Sep 2012 11:28:41 +0000 (14:28 +0300)
It is possible in various error paths as well as gap handling
that this has already been allocated. It is not clear why that
would be a problem with the current code, thus disable the
assert to avoid a common assert failure when asserts are enabled.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/h264.c

index 2c4f07d..99cf5dc 100644 (file)
@@ -2773,7 +2773,6 @@ static int decode_slice_header(H264Context *h, H264Context *h0)
             }
         } else {
             /* Frame or first field in a potentially complementary pair */
-            assert(!s0->current_picture_ptr);
             s0->first_field = FIELD_PICTURE;
         }