History

avformat/lafdec: Fix shadowing

Andreas Rheinhardt committed 2 years ago

Commit cee70b91 parent aa8c7dc1 file · +2 −2Browse files

Unified · Split

libavformat/lafdec.c+2−2
@@ -148,8 +148,8 @@ static int laf_read_header(AVFormatContext *ctx) · 147 unmodified lines
148148 if (!s->data)
149149 return AVERROR(ENOMEM);
150150
151− for (int st = 0; st < st_count; st++) {
152− StreamParams *stp = &s->p[st];
151+ for (unsigned i = 0; i < st_count; i++) {
152+ StreamParams *stp = &s->p[i];
153153 AVCodecParameters *par;
154154 AVStream *st = avformat_new_stream(ctx, NULL);
155155 if (!st)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t