Support 44.1kHz audio. Acked by Benjamin
authorAlex Beregszaszi <alex@rtfs.hu>
Wed, 14 Nov 2007 15:31:47 +0000 (15:31 +0000)
committerAlex Beregszaszi <alex@rtfs.hu>
Wed, 14 Nov 2007 15:31:47 +0000 (15:31 +0000)
Originally committed as revision 11024 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/nellymoserdec.c

index 7edcfa9..5880202 100644 (file)
@@ -379,6 +379,8 @@ static int decode_tag(AVCodecContext * avctx,
             blocks = 2; break;
         case 256:   // 22050Hz
             blocks = 4; break;
+        case 512:   // 44100Hz
+            blocks = 8; break;
         default:
             av_log(avctx, AV_LOG_ERROR, "Tag size %d unknown, report sample!\n", buf_size);
             return buf_size;