diff options
author | Kieran Kunhya <kieran@kunhya.com> | 2015-06-26 21:55:06 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-26 23:11:17 +0200 |
commit | 22291c372fa703242e8429bed61700ba81258f19 (patch) | |
tree | de9ee9e07cde6b602d5515bb5c23a983f867cdd4 /libavcodec/h264_sei.c | |
parent | b75c0a72ed3bb5fab0a0b66ede94f6de887db585 (diff) | |
download | ffmpeg-22291c372fa703242e8429bed61700ba81258f19.tar.gz |
avcodec: Add support for per-frame AFD output in h264
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264_sei.c')
-rw-r--r-- | libavcodec/h264_sei.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/h264_sei.c b/libavcodec/h264_sei.c index 8e1697a31e..b6ec5c7de9 100644 --- a/libavcodec/h264_sei.c +++ b/libavcodec/h264_sei.c @@ -132,7 +132,13 @@ static int decode_user_data_itu_t_t35(H264Context *h, int size) return -1; skip_bits(&h->gb, 4); dtg_active_format = get_bits(&h->gb, 4); +#if FF_API_AFD +FF_DISABLE_DEPRECATION_WARNINGS h->avctx->dtg_active_format = dtg_active_format; +FF_ENABLE_DEPRECATION_WARNINGS +#endif /* FF_API_AFD */ + h->has_afd = 1; + h->afd = dtg_active_format; } else { skip_bits(&h->gb, 6); } |