aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-05-23 23:25:42 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2024-05-28 03:48:03 +0200
commit33da5f4e2717cc947cf44ad9a52668694ea4ee82 (patch)
tree9ef531c445c2dbfde7c38aabd6f9c9f1ae408b87 /libavformat
parente7775973f037724f26676015a364134fd728babf (diff)
downloadffmpeg-33da5f4e2717cc947cf44ad9a52668694ea4ee82.tar.gz
avformat/demux: resurrect dead stores
Fixes: CID1473512 Unused value Fixes: CID1529228 Unused value Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/demux.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libavformat/demux.c b/libavformat/demux.c
index ecefe7e0a7..dc65f9ad91 100644
--- a/libavformat/demux.c
+++ b/libavformat/demux.c
@@ -2516,7 +2516,7 @@ static int extract_extradata(FFFormatContext *si, AVStream *st, const AVPacket *
int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
{
FFFormatContext *const si = ffformatcontext(ic);
- int count = 0, ret = 0;
+ int count = 0, ret = 0, err;
int64_t read_size;
AVPacket *pkt1 = si->pkt;
int64_t old_offset = avio_tell(ic->pb);
@@ -3027,9 +3027,11 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
}
}
- ret = compute_chapters_end(ic);
- if (ret < 0)
+ err = compute_chapters_end(ic);
+ if (err < 0) {
+ ret = err;
goto find_stream_info_err;
+ }
/* update the stream parameters from the internal codec contexts */
for (unsigned i = 0; i < ic->nb_streams; i++) {