diff mbox series

[FFmpeg-devel,45/60] avformat/vividas: fix variable shadowing

Message ID D41CE2FHYN5K.141QBH2Z5IGEI@gmail.com
State New
Headers show
Series [FFmpeg-devel,01/60] fftools/ffmpeg_opt: fix variable shadowing | expand

Commit Message

Marvin Scholz Sept. 8, 2024, 11:30 p.m. UTC
---
 libavformat/vividas.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavformat/vividas.c b/libavformat/vividas.c
index 130b81ebbe..4cad6c6456 100644
--- a/libavformat/vividas.c
+++ b/libavformat/vividas.c
@@ -417,7 +417,7 @@  static int track_header(VividasDemuxContext *viv, AVFormatContext *s,
             }
 
             for (j = 0; j < num_data; j++) {
-                int ret = avio_read(pb, &p[offset], data_len[j]);
+                ret = avio_read(pb, &p[offset], data_len[j]);
                 if (ret < data_len[j]) {
                     st->codecpar->extradata_size = 0;
                     av_freep(&st->codecpar->extradata);