Commit 79593096 authored by Andrey Myznikov's avatar Andrey Myznikov Committed by Michael Niedermayer

avformat/a64: Avoid segfault in a64_write_header() when stream codec is not open

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b6543421
......@@ -40,7 +40,7 @@ static int a64_write_header(AVFormatContext *s)
return AVERROR_INVALIDDATA;
}
switch (avctx->codec->id) {
switch (avctx->codec_id) {
case AV_CODEC_ID_A64_MULTI:
header[2] = 0x00;
header[3] = AV_RB32(avctx->extradata+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