summaryrefslogtreecommitdiff
path: root/libavcodec/ac3enc_template.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-07-13 13:53:58 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-07-13 16:55:28 -0400
commit82cea7cb6c38e251f88fbf090cd5361f5d0a49de (patch)
treefa6de14777f2b1fb2c12acde8063b509e5db11cd /libavcodec/ac3enc_template.c
parentf501157e5352e418b28cf6728208ea028bf3505c (diff)
downloadffmpeg-82cea7cb6c38e251f88fbf090cd5361f5d0a49de.tar.gz
ac3enc: prefer passing AC3EncodeContext rather than AVCodecContext
Diffstat (limited to 'libavcodec/ac3enc_template.c')
-rw-r--r--libavcodec/ac3enc_template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3enc_template.c b/libavcodec/ac3enc_template.c
index c7243c7644..95c190b666 100644
--- a/libavcodec/ac3enc_template.c
+++ b/libavcodec/ac3enc_template.c
@@ -424,7 +424,7 @@ int AC3_NAME(encode_frame)(AVCodecContext *avctx, unsigned char *frame,
int ret;
if (!s->eac3 && s->options.allow_per_frame_metadata) {
- ret = ff_ac3_validate_metadata(avctx);
+ ret = ff_ac3_validate_metadata(s);
if (ret)
return ret;
}