aboutsummaryrefslogtreecommitdiff
path: root/libavformat/replaygain.c
diff options
context:
space:
mode:
authorMichael Niedermayer2014-04-18 01:16:27 +0200
committerMichael Niedermayer2014-04-18 01:16:27 +0200
commit97751e1324deb91522b1d73307dab1a88c8d726c (patch)
tree5b3c5868166e6a2800c9578f0e517d7f39c0b4be /libavformat/replaygain.c
parente48fb4e1a5a9796b4fb0fee7212404517d236aa2 (diff)
avformat/replaygain: fix mixed declaration and statement
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/replaygain.c')
-rw-r--r--libavformat/replaygain.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/replaygain.c b/libavformat/replaygain.c
index eccbb0179c..8b8c81a0c3 100644
--- a/libavformat/replaygain.c
+++ b/libavformat/replaygain.c
@@ -71,11 +71,12 @@ int ff_replaygain_export_raw(AVStream *st, int32_t tg, uint32_t tp,
{
AVPacketSideData *sd, *tmp;
AVReplayGain *replaygain;
+ int i;
if (tg == INT32_MIN && ag == INT32_MIN)
return 0;
- for (int i = 0; i < st->nb_side_data; i++) {
+ for (i = 0; i < st->nb_side_data; i++) {
AVPacketSideData *src_sd = &st->side_data[i];
if (src_sd->type == AV_PKT_DATA_REPLAYGAIN)