vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | Fri Aug 3 12:23:23 2012 +0200| [001a7f6ebd363695296edf332c27d0ab2d1682f1] | committer: 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 > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=001a7f6ebd363695296edf332c27d0ab2d1682f1 --- modules/demux/mp4/mp4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c index 0e13001..10932ba 100644 --- a/modules/demux/mp4/mp4.c +++ b/modules/demux/mp4/mp4.c @@ -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_sample_per_packet <= 0 ) { - msg_Err( p_demux, "Invalid sample per packet value for qt_version 1" ); - return VLC_EGENERIC; + msg_Err( p_demux, "Invalid sample per packet value for qt_version 1. Broken muxer!" ); + p_sample->data.p_sample_soun->i_qt_version = 0; } break; _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
