From 728d90a0c1973661a9e73da697bf4f90c9d19577 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 22 Mar 2016 13:31:21 +0100 Subject: h264: decouple h264_sei from the h264 decoder Make the SEI parsing independent of the H264Context, to allow decoupling the parser from the decoder. --- libavcodec/h264_slice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/h264_slice.c') diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index 82a5a82851..5cbfee122c 100644 --- a/libavcodec/h264_slice.c +++ b/libavcodec/h264_slice.c @@ -826,7 +826,7 @@ static int h264_slice_header_init(H264Context *h) if (sps->timing_info_present_flag) { int64_t den = sps->time_scale; - if (h->x264_build < 44U) + if (h->sei.unregistered.x264_build < 44U) den *= 2; av_reduce(&h->avctx->framerate.den, &h->avctx->framerate.num, sps->num_units_in_tick, den, 1 << 30); -- cgit v1.2.3