Skip to content

Commit

Permalink
avformat/latmenc: abort if no extradata is available
Browse files Browse the repository at this point in the history
Fixes ticket #8273.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
  • Loading branch information
jamrial committed Oct 15, 2019
1 parent f259848 commit dd01947
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libavformat/latmenc.c
Expand Up @@ -176,7 +176,8 @@ static int latm_write_packet(AVFormatContext *s, AVPacket *pkt)
if (ret < 0)
return ret;
memcpy(par->extradata, side_data, side_data_size);
}
} else
return AVERROR_INVALIDDATA;
}
}

Expand Down

0 comments on commit dd01947

Please sign in to comment.