#include <vlc/vlc.h>
-#include <stdio.h>
-#include <stdlib.h> /* malloc(), free() */
#include <vlc_demux.h>
#include <vlc_playlist.h>
demux_t *p_demux = (demux_t *)p_this;
demux_sys_t *p_sys;
- uint8_t *p_peek;
+ const uint8_t *p_peek;
MP4_Box_t *p_ftyp;
MP4_Box_t *p_rmra;
p_track->fmt.i_codec = VLC_FOURCC('Y','U','Y','2');
break;
+ case VLC_FOURCC('i','n','2','4'):
+ /* in in24/in32 there's enda-atom to tell it's little-endian (if present) */
+ if( ( MP4_BoxGet( p_sample, "wave/enda" ) ) ||
+ ( MP4_BoxGet( p_sample, "enda" ) ) )
+ {
+ p_track->fmt.i_codec = VLC_FOURCC('4','2','n','i');
+ } else {
+ p_track->fmt.i_codec = p_sample->i_type;
+ }
+ break;
+
default:
p_track->fmt.i_codec = p_sample->i_type;
break;
/*
* 3 types: for audio
- *
+ *
*/
#define QT_V0_MAX_SAMPLES 1024
static int MP4_TrackSampleSize( mp4_track_t *p_track )