]> git.sesse.net Git - ffmpeg/commitdiff
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 b41fcf48420570b2dab4ea0c9798d919d15ed748..4eb2ea29283def14d4c09e2ab730507a39ebcf2f 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