diff mov.c @ 4835:ac71e186e2fe libavformat

force sample for qcelp when not stored in mov, fix #968
author bcoudurier
date Wed, 08 Apr 2009 03:38:59 +0000
parents 916678f56bfd
children 304a0ea063f0
line wrap: on
line diff
--- a/mov.c	Wed Apr 08 03:06:08 2009 +0000
+++ b/mov.c	Wed Apr 08 03:38:59 2009 +0000
@@ -1034,6 +1034,9 @@
 #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;