avcodec/utils: check that extended data has been set correctly instead of forcing it in avcodec_decode_video2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -2158,7 +2158,7 @@ fail:
|
|||||||
|
|
||||||
/* many decoders assign whole AVFrames, thus overwriting extended_data;
|
/* many decoders assign whole AVFrames, thus overwriting extended_data;
|
||||||
* make sure it's set correctly */
|
* make sure it's set correctly */
|
||||||
picture->extended_data = picture->data;
|
av_assert0(!picture->extended_data || picture->extended_data == picture->data);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user