Commit af0505ed authored by James Almer's avatar James Almer

Merge commit '6ac0e781'

* commit '6ac0e781':
  mpeg4videodec: raise an error if sprite_trajectory.table is NULL
Merged-by: 's avatarJames Almer <jamrial@gmail.com>
parents cdba33c4 6ac0e781
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment