diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2015-07-16 09:47:55 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-07-16 12:18:30 +0200 |
commit | 8dad213143e34b477f034ada4addf2ed2b1c983d (patch) | |
tree | 9bc4101735fa4a55d58003abf00f662b09d76c87 /libavcodec/vp9.c | |
parent | 7aafac976fe2806c9519d4154b5f0d5b6767fbe2 (diff) | |
download | ffmpeg-8dad213143e34b477f034ada4addf2ed2b1c983d.tar.gz |
lavc: Add properties field to AVCodecContext.
The new field can hold information about losslessness and closed captions for now.
Diffstat (limited to 'libavcodec/vp9.c')
-rw-r--r-- | libavcodec/vp9.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index 6888326a05..5b5ad9966e 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -733,6 +733,8 @@ static int decode_frame_header(AVCodecContext *ctx, s->uvac_qdelta = get_bits1(&s->gb) ? get_sbits_inv(&s->gb, 4) : 0; s->lossless = s->yac_qi == 0 && s->ydc_qdelta == 0 && s->uvdc_qdelta == 0 && s->uvac_qdelta == 0; + if (s->lossless) + ctx->properties |= FF_CODEC_PROPERTY_LOSSLESS; /* segmentation header info */ s->segmentation.ignore_refmap = 0; |