changeset 3252:f4fcd39c5d7f libavformat

set gsm default frame size and bytes per frame, needed by old qt format, fix sample-gsm-8000.mov
author bcoudurier
date Fri, 25 Apr 2008 10:35:06 +0000
parents 994c65371958
children ab5585778359
files mov.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mov.c	Fri Apr 25 09:08:13 2008 +0000
+++ b/mov.c	Fri Apr 25 10:35:06 2008 +0000
@@ -856,6 +856,10 @@
                 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;
             }