Commit 001a7f6e authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

MP4: be more tolerant with broken files from Fuji cameras

If the sample per packet is wrong, denote to qt_version 0

Ref: http://forum.videolan.org/viewtopic.php?f=14&t=103013
parent cf560768
...@@ -1622,8 +1622,8 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track, ...@@ -1622,8 +1622,8 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
p_sample->data.p_sample_soun->i_qt_version == 1 && p_sample->data.p_sample_soun->i_qt_version == 1 &&
p_sample->data.p_sample_soun->i_sample_per_packet <= 0 ) p_sample->data.p_sample_soun->i_sample_per_packet <= 0 )
{ {
msg_Err( p_demux, "Invalid sample per packet value for qt_version 1" ); msg_Err( p_demux, "Invalid sample per packet value for qt_version 1. Broken muxer!" );
return VLC_EGENERIC; p_sample->data.p_sample_soun->i_qt_version = 0;
} }
break; break;
......
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