Commit 45d6fa41 authored by bcoudurier's avatar bcoudurier

need to dissociate pcm 16bit and 8bit cases


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5210 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent bebd4d8f
......@@ -1077,7 +1077,8 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
case CODEC_ID_PCM_S16BE:
if (st->codec->bits_per_sample == 8)
st->codec->codec_id = CODEC_ID_PCM_S8;
/* fall */
st->codec->bit_rate = st->codec->sample_rate * 8;
break;
case CODEC_ID_PCM_U8:
if (st->codec->bits_per_sample == 16)
st->codec->codec_id = CODEC_ID_PCM_S16BE;
......
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