Browse Source

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

Originally committed as revision 18374 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Baptiste Coudurier 16 years ago
parent
commit
17ad7b24c8
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavformat/mov.c

+ 3
- 0
libavformat/mov.c View File

@@ -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;


Loading…
Cancel
Save