Mercurial > libavformat.hg
changeset 4835:ac71e186e2fe libavformat
force sample for qcelp when not stored in mov, fix #968
author | bcoudurier |
---|---|
date | Wed, 08 Apr 2009 03:38:59 +0000 |
parents | 231479c86582 |
children | bf87d9ffb3ae |
files | mov.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mov.c Wed Apr 08 03:06:08 2009 +0000 +++ b/mov.c Wed Apr 08 03:38:59 2009 +0000 @@ -1034,6 +1034,9 @@ #endif /* no ifdef since parameters are always those */ 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->channels= 1; /* really needed */ break;