avcodec/utils: check that extended data has been set correctly instead of forcing...
[ffmpeg.git] / libavcodec / utils.c
index ee873d7..dd3f112 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;
 }