From 5ffcb1be1f291b3bc22d71e147eb2b0a33c8dc9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Sun, 8 Jul 2007 23:15:10 +0000 Subject: [PATCH] set sample rate in more logical place, kill warning Originally committed as revision 9552 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mpegaudio_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mpegaudio_parser.c b/libavcodec/mpegaudio_parser.c index b41fcf4842..4eb2ea2928 100644 --- a/libavcodec/mpegaudio_parser.c +++ b/libavcodec/mpegaudio_parser.c @@ -146,9 +146,9 @@ static int mpegaudio_parse(AVCodecParserContext *s1, s->frame_size = -1; } #endif - } if(s->header_count > 1) avctx->sample_rate= sr; + } } } else #if 0