Revision eb1e7f78 libavformat/id3v2.c

View differences:

libavformat/id3v2.c
188 188
    char tag[5];
189 189
    int64_t next, end = avio_tell(s->pb) + len;
190 190
    int taghdrlen;
191
    const char *reason;
191
    const char *reason = NULL;
192 192
    AVIOContext pb;
193 193
    unsigned char *buffer = NULL;
194 194
    int buffer_size = 0;
......
286 286
    if (version == 4 && flags & 0x10) /* Footer preset, always 10 bytes, skip over it */
287 287
        end += 10;
288 288

  
289
  error:
290
    if (reason)
291
        av_log(s, AV_LOG_INFO, "ID3v2.%d tag skipped, cannot handle %s\n", version, reason);
289 292
    avio_seek(s->pb, end, SEEK_SET);
290 293
    av_free(buffer);
291 294
    return;
292

  
293
  error:
294
    av_log(s, AV_LOG_INFO, "ID3v2.%d tag skipped, cannot handle %s\n", version, reason);
295
    avio_seek(s->pb, len, SEEK_CUR);
296
    av_free(buffer);
297 295
}
298 296

  
299 297
void ff_id3v2_read(AVFormatContext *s, const char *magic)

Also available in: Unified diff