mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-09 08:09:11 +00:00
avformat/a64: Avoid segfault in a64_write_header() when stream codec is not open
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
b6543421f5
commit
79593096c4
@ -40,7 +40,7 @@ static int a64_write_header(AVFormatContext *s)
|
|||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (avctx->codec->id) {
|
switch (avctx->codec_id) {
|
||||||
case AV_CODEC_ID_A64_MULTI:
|
case AV_CODEC_ID_A64_MULTI:
|
||||||
header[2] = 0x00;
|
header[2] = 0x00;
|
||||||
header[3] = AV_RB32(avctx->extradata+0);
|
header[3] = AV_RB32(avctx->extradata+0);
|
||||||
|
Loading…
Reference in New Issue
Block a user