Commit ac22bdb8 authored by Gildas Bazin's avatar Gildas Bazin

* modules/demux/mp4/mp4.c: set fmt.video.i_bits_per_pixel (needed at least for QT RLE).

* modules/codec/ffmpeg/ffmpeg.c: added QT RLE fourcc.
--This line, and 
those below, will be ignored--

M    codec/ffmpeg/ffmpeg.c
M    demux/mp4/mp4.c
parent 856a18f7
......@@ -831,6 +831,9 @@ static struct
#endif
#if LIBAVCODEC_BUILD >= 4752
{ VLC_FOURCC('r','l','e',' '), CODEC_ID_QTRLE,
VIDEO_ES, "Apple QuickTime RLE Video" },
{ VLC_FOURCC('q','d','r','w'), CODEC_ID_QDRAW,
VIDEO_ES, "Apple QuickDraw Video" },
......
......@@ -1427,6 +1427,8 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
case( VIDEO_ES ):
p_track->fmt.video.i_width = p_sample->data.p_sample_vide->i_width;
p_track->fmt.video.i_height = p_sample->data.p_sample_vide->i_height;
p_track->fmt.video.i_bits_per_pixel =
p_sample->data.p_sample_vide->i_depth;
/* fall on display size */
if( p_track->fmt.video.i_width <= 0 )
......
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