You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
h264: Properly set coded_{width, height} when parsing H.264.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:
committed by
Diego Biurrun
parent
a10fb79070
commit
b47904d158
@@ -1914,6 +1914,9 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
|
|||||||
s->avctx->sample_aspect_ratio= h->sps.sar;
|
s->avctx->sample_aspect_ratio= h->sps.sar;
|
||||||
av_assert0(s->avctx->sample_aspect_ratio.den);
|
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){
|
if(h->sps.video_signal_type_present_flag){
|
||||||
s->avctx->color_range = h->sps.full_range ? AVCOL_RANGE_JPEG : AVCOL_RANGE_MPEG;
|
s->avctx->color_range = h->sps.full_range ? AVCOL_RANGE_JPEG : AVCOL_RANGE_MPEG;
|
||||||
if(h->sps.colour_description_present_flag){
|
if(h->sps.colour_description_present_flag){
|
||||||
|
Reference in New Issue
Block a user