Fixes: CID1473512 Unused value Fixes: CID1529228 Unused value
Unified · Split
| @@ -2516,7 +2516,7 @@ static int extract_extradata(FFFormatContext *si, AVStream *st, const AVPacket * · 2515 unmodified lines | ||
| 2516 | 2516 | int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) |
| 2517 | 2517 | { |
| 2518 | 2518 | FFFormatContext *const si = ffformatcontext(ic); |
| 2519 | − int count = 0, ret = 0; | |
| 2519 | + int count = 0, ret = 0, err; | |
| 2520 | 2520 | int64_t read_size; |
| 2521 | 2521 | AVPacket *pkt1 = si->pkt; |
| 2522 | 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); | |
| 3031 | − if (ret < 0) | |
| 3030 | + err = compute_chapters_end(ic); | |
| 3031 | + if (err < 0) { | |
| 3032 | + ret = err; | |
| 3032 | 3033 | goto find_stream_info_err; |
| 3034 | + } | |
| 3033 | 3035 | |
| 3034 | 3036 | /* update the stream parameters from the internal codec contexts */ |
| 3035 | 3037 | for (unsigned i = 0; i < ic->nb_streams; i++) { |