set sample rate in more logical place, kill warning
authorMåns Rullgård <mans@mansr.com>
Sun, 8 Jul 2007 23:15:10 +0000 (23:15 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 8 Jul 2007 23:15:10 +0000 (23:15 +0000)
Originally committed as revision 9552 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpegaudio_parser.c

index b41fcf4..4eb2ea2 100644 (file)
@@ -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