[FFmpeg-cvslog] r18374 - trunk/libavformat/mov.c

bcoudurier subversion
Wed Apr 8 05:38:59 CEST 2009


Author: bcoudurier
Date: Wed Apr  8 05:38:59 2009
New Revision: 18374

Log:
force sample for qcelp when not stored in mov, fix #968

Modified:
   trunk/libavformat/mov.c

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	Wed Apr  8 05:06:08 2009	(r18373)
+++ trunk/libavformat/mov.c	Wed Apr  8 05:38:59 2009	(r18374)
@@ -1034,6 +1034,9 @@ static int mov_read_stsd(MOVContext *c, 
 #endif
     /* no ifdef since parameters are always those */
     case CODEC_ID_QCELP:
+        // force sample rate for qcelp when not stored in mov
+        if (st->codec->codec_tag != MKTAG('Q','c','l','p'))
+            st->codec->sample_rate = 8000;
         st->codec->frame_size= 160;
         st->codec->channels= 1; /* really needed */
         break;



More information about the ffmpeg-cvslog mailing list