summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Myznikov <andrey.myznikov@gmail.com>2014-08-18 20:03:31 +0300
committerMichael Niedermayer <michaelni@gmx.at>2014-08-18 19:48:18 +0200
commit79593096c43c13a4524822fceffca7e4647ff67d (patch)
tree3e37302a55eaa27e5ecd51509c5b66efb1e6f8a7
parentb6543421f5cb911d6451dec449783329431ce131 (diff)
avformat/a64: Avoid segfault in a64_write_header() when stream codec is not open
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/a64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/a64.c b/libavformat/a64.c
index 03679b2838..a7f93a27b1 100644
--- a/libavformat/a64.c
+++ b/libavformat/a64.c
@@ -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);