Mercurial > libavformat.hg
changeset 5435:d6371dd2bec4 libavformat
Factor out variable declaration
author | kostya |
---|---|
date | Sun, 13 Dec 2009 08:44:06 +0000 |
parents | 68c8e7affd44 |
children | d2effdcafa28 |
files | rmdec.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rmdec.c Sat Dec 12 20:18:43 2009 +0000 +++ b/rmdec.c Sun Dec 13 08:44:06 2009 +0000 @@ -131,6 +131,7 @@ 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 @@ 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 @@ 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);