avcodec/utils: check that extended data has been set correctly instead of forcing...
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 10 Dec 2013 00:00:01 +0000 (01:00 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 10 Dec 2013 00:11:32 +0000 (01:11 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/utils.c

index ee873d7f04bacf91d16f51d958867c5342a618d5..dd3f112ef88106493bc8486205c5615c227b0300 100644 (file)
@@ -2158,7 +2158,7 @@ fail:
 
     /* many decoders assign whole AVFrames, thus overwriting extended_data;
      * make sure it's set correctly */
-    picture->extended_data = picture->data;
+    av_assert0(!picture->extended_data || picture->extended_data == picture->data);
 
     return ret;
 }