Commit 8c298771 authored by gbazin's avatar gbazin
Browse files

* modules/demux/mp4/mp4.c: work-around buggy muxers which don't set properly...

* modules/demux/mp4/mp4.c: work-around buggy muxers which don't set properly the display size in the mov/mp4 container.
parent a572c3a3
......@@ -1146,7 +1146,9 @@ static int TrackCreateES ( input_thread_t *p_input,
p_track->fmt.video.i_height = p_track->i_height;
/* Find out apect ratio from display size */
if( p_track->i_width > 0 && p_track->i_height > 0 )
if( p_track->i_width > 0 && p_track->i_height > 0 &&
/* Work-around buggy muxed files */
p_sample->data.p_sample_vide->i_width != p_track->i_width )
p_track->fmt.video.i_aspect =
VOUT_ASPECT_FACTOR * p_track->i_width / p_track->i_height;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment