Commit c94849c2 authored by bcoudurier's avatar bcoudurier

force sample for qcelp when not stored in mov, fix #968

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18374 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ed1c6dcf
...@@ -1034,6 +1034,9 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOVAtom atom) ...@@ -1034,6 +1034,9 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
#endif #endif
/* no ifdef since parameters are always those */ /* no ifdef since parameters are always those */
case CODEC_ID_QCELP: case CODEC_ID_QCELP:
// force sample rate for qcelp when not stored in mov
if (st->codec->codec_tag != MKTAG('Q','c','l','p'))
st->codec->sample_rate = 8000;
st->codec->frame_size= 160; st->codec->frame_size= 160;
st->codec->channels= 1; /* really needed */ st->codec->channels= 1; /* really needed */
break; break;
......
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