mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 05:00:37 +00:00
Merge commit '6ac0e7818399a57e4684202bac79f35b3561ad1e'
* commit '6ac0e7818399a57e4684202bac79f35b3561ad1e': mpeg4videodec: raise an error if sprite_trajectory.table is NULL Merged-by: James Almer <jamrial@gmail.com>
This commit is contained in:
commit
af0505ed95
@ -189,6 +189,10 @@ static int mpeg4_decode_sprite_trajectory(Mpeg4DecContext *ctx, GetBitContext *g
|
||||
if (w <= 0 || h <= 0)
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
/* the decoder was not properly initialized and we cannot continue */
|
||||
if (sprite_trajectory.table == NULL)
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
for (i = 0; i < ctx->num_sprite_warping_points; i++) {
|
||||
int length;
|
||||
int x = 0, y = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user