[FFmpeg-devel] [PATCH 2/2] genh: Removed unused variable coef_splitted

Timothy Gu timothygu99 at gmail.com
Sun Nov 8 06:01:18 CET 2015


---
 libavformat/genh.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libavformat/genh.c b/libavformat/genh.c
index 260e320..44862b3 100644
--- a/libavformat/genh.c
+++ b/libavformat/genh.c
@@ -40,7 +40,6 @@ static int genh_read_header(AVFormatContext *s)
 {
     unsigned start_offset, header_size, codec, coef_type, coef[2];
     GENHDemuxContext *c = s->priv_data;
-    unsigned coef_splitted[2];
     int align, ch, ret;
     AVStream *st;
 
@@ -112,8 +111,7 @@ static int genh_read_header(AVFormatContext *s)
     coef[1]          = avio_rl32(s->pb);
     c->dsp_int_type  = avio_rl32(s->pb);
     coef_type        = avio_rl32(s->pb);
-    coef_splitted[0] = avio_rl32(s->pb);
-    coef_splitted[1] = avio_rl32(s->pb);
+    avio_rl64(s->pb); /* coef_splitted */
 
     if (st->codec->codec_id == AV_CODEC_ID_ADPCM_THP) {
         if (st->codec->channels > 2) {
-- 
2.1.4



More information about the ffmpeg-devel mailing list