set gsm default frame size and bytes per frame, needed by old qt format, fix sample...
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Fri, 25 Apr 2008 10:35:06 +0000 (10:35 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Fri, 25 Apr 2008 10:35:06 +0000 (10:35 +0000)
Originally committed as revision 12950 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mov.c

index ab5953c..0e39832 100644 (file)
@@ -856,6 +856,10 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
                 sc->samples_per_frame = 64;
                 sc->bytes_per_frame = 34*st->codec->channels;
                 break;
+            case CODEC_ID_GSM:
+                sc->samples_per_frame = 160;
+                sc->bytes_per_frame = 33;
+                break;
             default:
                 break;
             }