diff options
author | wm4 <wm4@nowhere> | 2018-01-29 13:49:39 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-01-30 03:10:27 -0800 |
commit | 1d5991ef306f5a0306f79ba99ae5a919357b18ff (patch) | |
tree | 755afc22d3261c7bb14f2d8ccb2c94507c7eeb0a /video/mp_image.h | |
parent | 3d367e009c22e390c021bd6b2be32adc641222e7 (diff) | |
download | mpv-1d5991ef306f5a0306f79ba99ae5a919357b18ff.tar.bz2 mpv-1d5991ef306f5a0306f79ba99ae5a919357b18ff.tar.xz |
mp_image: preserve AVFrame closed captions data
This is preparation for a change in vd_lavc.c: it should not have to
access the demuxer (to pass along closed captions), so the idea is to
make them part of mp_image, and to let the layer above vd_lavc propagate
the buffer.
Don't bother with preserving them for mp_image->AVFrame, because we
don't need this.
Diffstat (limited to 'video/mp_image.h')
-rw-r--r-- | video/mp_image.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/mp_image.h b/video/mp_image.h index 5591b2fd9f..f7969a4314 100644 --- a/video/mp_image.h +++ b/video/mp_image.h @@ -119,6 +119,8 @@ typedef struct mp_image { struct AVBufferRef *hwctx; // Embedded ICC profile, if any struct AVBufferRef *icc_profile; + // Closed captions packet, if any (only after decoder) + struct AVBufferRef *a53_cc; } mp_image_t; int mp_chroma_div_up(int size, int shift); |