]> git.sesse.net Git - vlc/commitdiff
* mp4: fix for alaw/ulaw. Clever people that designed .mov decided that
authorLaurent Aimar <fenrir@videolan.org>
Tue, 25 May 2004 19:38:39 +0000 (19:38 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 25 May 2004 19:38:39 +0000 (19:38 +0000)
the demuxer has to ask the parameters to the decoder, instead of just
using the ones in the file.

modules/demux/mp4/mp4.c

index 0f2264a7bfb937949f4a5ddf238883dd57e7b904..a797e5a40e5e817b8459b62b9a9ca99cd2068e8a 100644 (file)
@@ -1055,6 +1055,10 @@ static int  TrackCreateES   ( demux_t   *p_demux,
                     p_soun->i_bytes_per_frame   = 2 * p_soun->i_channelcount;
                     p_soun->i_bytes_per_sample  = 2;
                     break;
+                case VLC_FOURCC( 'a', 'l', 'a', 'w' ):
+                case VLC_FOURCC( 'u', 'l', 'a', 'w' ):
+                    p_soun->i_samplesize = 8;
+                    break;
                 default:
                     break;
             }