Commit 0dd39bfe authored by Baptiste Coudurier's avatar Baptiste Coudurier

Quicktime creates S8 that way too

Originally committed as revision 5208 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent a66abcb1
...@@ -1073,6 +1073,7 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) ...@@ -1073,6 +1073,7 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
st->codec->sample_rate = ((get_be32(pb) >> 16)); st->codec->sample_rate = ((get_be32(pb) >> 16));
switch (st->codec->codec_id) { switch (st->codec->codec_id) {
case CODEC_ID_PCM_S16LE:
case CODEC_ID_PCM_S16BE: case CODEC_ID_PCM_S16BE:
if (st->codec->bits_per_sample == 8) if (st->codec->bits_per_sample == 8)
st->codec->codec_id = CODEC_ID_PCM_S8; st->codec->codec_id = CODEC_ID_PCM_S8;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment