Mercurial > libavformat.hg
changeset 2847:f2a69a8c657d libavformat
Correctly handle FLV_CODECID_NELLYMOSER_8HZ_MONO files
author | banan |
---|---|
date | Thu, 20 Dec 2007 11:21:10 +0000 |
parents | 625c2c60f585 |
children | c8185d08d339 |
files | flvdec.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flvdec.c Thu Dec 20 09:59:07 2007 +0000 +++ b/flvdec.c Thu Dec 20 11:21:10 2007 +0000 @@ -179,6 +179,7 @@ } else if(!strcmp(key, "audiosamplerate") && acodec && num_val >= 0) { //some tools, like FLVTool2, write consistently approximate metadata sample rates + if (!acodec->sample_rate) { switch((int)num_val) { case 44000: acodec->sample_rate = 44100 ; break; case 22000: acodec->sample_rate = 22050 ; break; @@ -186,6 +187,7 @@ case 5000 : acodec->sample_rate = 5512 ; break; default : acodec->sample_rate = num_val; } + } } } }