Commit f47133cb authored by Frédéric Yhuel's avatar Frédéric Yhuel Committed by Jean-Baptiste Kempf

demux/mp4: do not demux f4v files for now

This is a temporary workaround until someone add support for f4v.

Work-around #4915
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent ae4fda5b
......@@ -199,11 +199,10 @@ static int Open( vlc_object_t * p_this )
bool b_enabled_es;
/* A little test to see if it could be a mp4 */
if( stream_Peek( p_demux->s, &p_peek, 8 ) < 8 ) return VLC_EGENERIC;
if( stream_Peek( p_demux->s, &p_peek, 11 ) < 11 ) return VLC_EGENERIC;
switch( VLC_FOURCC( p_peek[4], p_peek[5], p_peek[6], p_peek[7] ) )
{
case ATOM_ftyp:
case ATOM_moov:
case ATOM_foov:
case ATOM_moof:
......@@ -214,6 +213,11 @@ static int Open( vlc_object_t * p_this )
case ATOM_wide:
case VLC_FOURCC( 'p', 'n', 'o', 't' ):
break;
case ATOM_ftyp:
/* We don't yet support f4v, but avformat does. */
if( p_peek[8] == 'f' && p_peek[9] == '4' && p_peek[10] == 'v' )
return VLC_EGENERIC;
break;
default:
return VLC_EGENERIC;
}
......
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