aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/flacenc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-05-01 10:43:10 +0200
committerAnton Khirnov <anton@khirnov.net>2014-05-15 07:42:07 +0200
commit0c1959b056f6ccaa2eee2c824352ba93c8e36d52 (patch)
tree4706fca90a0acb580ae1b5cc3dc2e3fdc8dd6a5a /libavformat/flacenc.c
parentb70d7a4ac72d23f3448f3b08b770fdf5f57de222 (diff)
downloadffmpeg-0c1959b056f6ccaa2eee2c824352ba93c8e36d52.tar.gz
lavf: add AVFMT_FLAG_BITEXACT.
Use it instead of checking CODEC_FLAG_BITEXACT in the first stream's codec context. Using codec options inside lavf is fragile and can easily break when the muxing codec context is not the encoding context.
Diffstat (limited to 'libavformat/flacenc.c')
-rw-r--r--libavformat/flacenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/flacenc.c b/libavformat/flacenc.c
index 83ddf441e0..8a23163772 100644
--- a/libavformat/flacenc.c
+++ b/libavformat/flacenc.c
@@ -84,7 +84,7 @@ static int flac_write_header(struct AVFormatContext *s)
return ret;
ret = flac_write_block_comment(s->pb, &s->metadata, 0,
- codec->flags & CODEC_FLAG_BITEXACT);
+ s->flags & AVFMT_FLAG_BITEXACT);
if (ret)
return ret;