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
2516int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)2516int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
2517{2517{
2518 FFFormatContext *const si = ffformatcontext(ic);2518 FFFormatContext *const si = ffformatcontext(ic);
2519 int count = 0, ret = 0;2519 int count = 0, ret = 0, err;
2520 int64_t read_size;2520 int64_t read_size;
2521 AVPacket *pkt1 = si->pkt;2521 AVPacket *pkt1 = si->pkt;
2522 int64_t old_offset = avio_tell(ic->pb);2522 int64_t old_offset = avio_tell(ic->pb);
@@ -3027,9 +3027,11 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) · 504 unmodified lines
3027 }3027 }
3028 }3028 }
3029 3029
3030 ret = compute_chapters_end(ic);3030 err = compute_chapters_end(ic);
3031 if (ret < 0)3031 if (err < 0) {
3032 ret = err;
3032 goto find_stream_info_err;3033 goto find_stream_info_err;
3034 }
3033 3035
3034 /* update the stream parameters from the internal codec contexts */3036 /* update the stream parameters from the internal codec contexts */
3035 for (unsigned i = 0; i < ic->nb_streams; i++) {3037 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