History

avformat/demux: resurrect dead stores

Fixes: CID1473512 Unused value Fixes: CID1529228 Unused value

Michael Niedermayer committed 2 years ago

Commit 33da5f41 parent e7775971 file · +5 −3Browse files

Unified · Split

libavformat/demux.c+5−3
@@ -2516,7 +2516,7 @@ static int extract_extradata(FFFormatContext *si, AVStream *st, const AVPacket * · 2515 unmodified lines
25162516 int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
25172517 {
25182518 FFFormatContext *const si = ffformatcontext(ic);
2519− int count = 0, ret = 0;
2519+ int count = 0, ret = 0, err;
25202520 int64_t read_size;
25212521 AVPacket *pkt1 = si->pkt;
25222522 int64_t old_offset = avio_tell(ic->pb);
@@ -3027,9 +3027,11 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) · 504 unmodified lines
30273027 }
30283028 }
30293029
3030− ret = compute_chapters_end(ic);
3031− if (ret < 0)
3030+ err = compute_chapters_end(ic);
3031+ if (err < 0) {
3032+ ret = err;
30323033 goto find_stream_info_err;
3034+ }
30333035
30343036 /* update the stream parameters from the internal codec contexts */
30353037 for (unsigned i = 0; i < ic->nb_streams; i++) {

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