mirror of
https://code.videolan.org/videolan/vlc
synced 2024-10-03 01:31:53 +02:00
packetizer/h264.c: fix divition by zero for some streams
This commit is contained in:
parent
85d667d783
commit
40a8f62662
@ -630,9 +630,12 @@ static block_t *ParseNALBlock( decoder_t *p_dec, block_t *p_frag )
|
||||
w = bs_read( &s, 16 );
|
||||
h = bs_read( &s, 16 );
|
||||
}
|
||||
if( h != 0 )
|
||||
p_dec->fmt_out.video.i_aspect =
|
||||
VOUT_ASPECT_FACTOR * w / h * p_dec->fmt_out.video.i_width /
|
||||
p_dec->fmt_out.video.i_height;
|
||||
else
|
||||
p_dec->fmt_out.video.i_aspect = VOUT_ASPECT_FACTOR;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user