summaryrefslogtreecommitdiff
path: root/libavformat/au.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/au.c')
-rw-r--r--libavformat/au.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/au.c b/libavformat/au.c
index 8c3d62a595..b584d8d4f5 100644
--- a/libavformat/au.c
+++ b/libavformat/au.c
@@ -143,6 +143,8 @@ static int au_read_header(AVFormatContext *s,
st = av_malloc(sizeof(AVStream));
if (!st)
return -1;
+ avcodec_get_context_defaults(&st->codec);
+
s->nb_streams = 1;
s->streams[0] = st;