History

avformat/mp3dec: remove a call to avio_tell()

Zhao Zhili committed 4 years ago

Commit 94644341 parent 0d17f521 file · +4 −5Browse files

Unified · Split

libavformat/mp3dec.c+4−5
@@ -424,15 +424,14 @@ static int mp3_read_header(AVFormatContext *s) · 423 unmodified lines
424424 }
425425 }
426426 if (i == 64 * 1024) {
427− ret = avio_seek(s->pb, off, SEEK_SET);
427+ off = avio_seek(s->pb, off, SEEK_SET);
428428 } else {
429429 av_log(s, i > 0 ? AV_LOG_INFO : AV_LOG_VERBOSE, "Skipping %d bytes of junk at %"PRId64".\n", i, off);
430− ret = avio_seek(s->pb, off + i, SEEK_SET);
430+ off = avio_seek(s->pb, off + i, SEEK_SET);
431431 }
432− if (ret < 0)
433− return ret;
432+ if (off < 0)
433+ return off;
434434
435− off = avio_tell(s->pb);
436435 // the seek index is relative to the end of the xing vbr headers
437436 for (int i = 0; i < sti->nb_index_entries; i++)
438437 sti->index_entries[i].pos += off;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t