mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-24 16:22:51 +00:00
Merge commit '3ef6c5264b2590781b4ed556443ff49709dd45fb'
* commit '3ef6c5264b2590781b4ed556443ff49709dd45fb': a64: check that extradata exists before reading from it Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
47a721348a
@ -34,6 +34,12 @@ static int a64_write_header(AVFormatContext *s)
|
||||
0x00, //charset_lifetime (multi only)
|
||||
0x00 //fps in 50/fps;
|
||||
};
|
||||
|
||||
if (avctx->extradata_size < 4) {
|
||||
av_log(s, AV_LOG_ERROR, "Missing extradata\n");
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
|
||||
switch (avctx->codec->id) {
|
||||
case AV_CODEC_ID_A64_MULTI:
|
||||
header[2] = 0x00;
|
||||
|
Loading…
Reference in New Issue
Block a user