提交 b47904d1 编写于 作者: F Felipe Contreras 提交者: Diego Biurrun

h264: Properly set coded_{width, height} when parsing H.264.

Signed-off-by: NFelipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: NDiego Biurrun <diego@biurrun.de>
上级 a10fb790
......@@ -1914,6 +1914,9 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
s->avctx->sample_aspect_ratio= h->sps.sar;
av_assert0(s->avctx->sample_aspect_ratio.den);
h->s.avctx->coded_width = 16*s->mb_width;
h->s.avctx->coded_height = 16*s->mb_height;
if(h->sps.video_signal_type_present_flag){
s->avctx->color_range = h->sps.full_range ? AVCOL_RANGE_JPEG : AVCOL_RANGE_MPEG;
if(h->sps.colour_description_present_flag){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册