summaryrefslogtreecommitdiff
path: root/libavformat/daudenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/daudenc.c')
-rw-r--r--libavformat/daudenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/daudenc.c b/libavformat/daudenc.c
index 99b18d35aa..15a5afdfc9 100644
--- a/libavformat/daudenc.c
+++ b/libavformat/daudenc.c
@@ -23,8 +23,8 @@
static int daud_write_header(struct AVFormatContext *s)
{
- AVCodecContext *codec = s->streams[0]->codec;
- if (codec->channels!=6 || codec->sample_rate!=96000)
+ AVCodecParameters *par = s->streams[0]->codecpar;
+ if (par->channels!=6 || par->sample_rate!=96000)
return -1;
return 0;
}