diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-12-13 08:44:06 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-12-13 08:44:06 +0000 |
commit | 851ef8755bb9a7be24e67b98abc90ac17f2129ea (patch) | |
tree | 57651b3310ddcc96913b0890d7a0454087dd4bee /libavformat/rmdec.c | |
parent | a4914ac70880784d0e9bee814afac1235d1cd92b (diff) | |
download | ffmpeg-851ef8755bb9a7be24e67b98abc90ac17f2129ea.tar.gz |
Factor out variable declaration
Originally committed as revision 20818 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rmdec.c')
-rw-r--r-- | libavformat/rmdec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c index 8cf98c25b5..eeab97c278 100644 --- a/libavformat/rmdec.c +++ b/libavformat/rmdec.c @@ -131,6 +131,7 @@ static int rm_read_audio_stream_info(AVFormatContext *s, ByteIOContext *pb, st->codec->codec_id = CODEC_ID_RA_144; } else { int flavor, sub_packet_h, coded_framesize, sub_packet_size; + int codecdata_length; /* old version (4) */ get_be32(pb); /* .ra4 */ get_be32(pb); /* data size */ @@ -176,7 +177,6 @@ static int rm_read_audio_stream_info(AVFormatContext *s, ByteIOContext *pb, av_new_packet(&ast->pkt, ast->audio_framesize * sub_packet_h); } else if ((!strcmp(buf, "cook")) || (!strcmp(buf, "atrc")) || (!strcmp(buf, "sipr"))) { - int codecdata_length; get_be16(pb); get_byte(pb); if (((version >> 16) & 0xff) == 5) get_byte(pb); @@ -216,7 +216,6 @@ static int rm_read_audio_stream_info(AVFormatContext *s, ByteIOContext *pb, av_new_packet(&ast->pkt, ast->audio_framesize * sub_packet_h); } else if (!strcmp(buf, "raac") || !strcmp(buf, "racp")) { - int codecdata_length; get_be16(pb); get_byte(pb); if (((version >> 16) & 0xff) == 5) get_byte(pb); |