mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-02 20:35:37 +02:00
set gsm default frame size and bytes per frame, needed by old qt format, fix sample-gsm-8000.mov
Originally committed as revision 12950 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
07a47ae2a3
commit
cc326d2bf3
@ -856,6 +856,10 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
|
|||||||
sc->samples_per_frame = 64;
|
sc->samples_per_frame = 64;
|
||||||
sc->bytes_per_frame = 34*st->codec->channels;
|
sc->bytes_per_frame = 34*st->codec->channels;
|
||||||
break;
|
break;
|
||||||
|
case CODEC_ID_GSM:
|
||||||
|
sc->samples_per_frame = 160;
|
||||||
|
sc->bytes_per_frame = 33;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user