ffmpeg | branch: master | Michael Niedermayer <mich...@niedermayer.cc> | Tue 
Jul 29 00:19:23 2025 +0200| [ebcdba4c6b340b26674f7bee9abc585a26a45304] | 
committer: Michael Niedermayer

avformat/subfile: Initialize end on all cases

Fixes: use of uninitialized variable
Regression since: e29016a9de8cf9a15569bdcea6e68c8e9ba2f299

Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ebcdba4c6b340b26674f7bee9abc585a26a45304
---

 libavformat/subfile.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavformat/subfile.c b/libavformat/subfile.c
index b8c6ce0eef..89799feaec 100644
--- a/libavformat/subfile.c
+++ b/libavformat/subfile.c
@@ -118,11 +118,9 @@ static int64_t subfile_seek(URLContext *h, int64_t pos, 
int whence)
     int64_t new_pos, end;
     int ret;
 
-    if (whence == AVSEEK_SIZE || whence == SEEK_END) {
         end = c->end;
         if (end == INT64_MAX && (end = ffurl_seek(c->h, 0, AVSEEK_SIZE)) < 0)
             return end;
-    }
 
     switch (whence) {
     case AVSEEK_SIZE:

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to