1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-08 13:22:53 +02:00

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>
(cherry picked from commit 33da5f4e27)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2024-05-23 23:25:42 +02:00
parent d17dcd63b1
commit 4b11e29881
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64

View File

@ -2499,7 +2499,7 @@ static int extract_extradata(FFFormatContext *si, AVStream *st, const AVPacket *
int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
{ {
FFFormatContext *const si = ffformatcontext(ic); FFFormatContext *const si = ffformatcontext(ic);
int count = 0, ret = 0; int count = 0, ret = 0, err;
int64_t read_size; int64_t read_size;
AVPacket *pkt1 = si->pkt; AVPacket *pkt1 = si->pkt;
int64_t old_offset = avio_tell(ic->pb); int64_t old_offset = avio_tell(ic->pb);
@ -3010,9 +3010,11 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
} }
} }
ret = compute_chapters_end(ic); err = compute_chapters_end(ic);
if (ret < 0) if (err < 0) {
ret = err;
goto find_stream_info_err; goto find_stream_info_err;
}
/* update the stream parameters from the internal codec contexts */ /* update the stream parameters from the internal codec contexts */
for (unsigned i = 0; i < ic->nb_streams; i++) { for (unsigned i = 0; i < ic->nb_streams; i++) {