Re: [FFmpeg-devel] [PATCH 2/9] lavf/v4l2: do not use a context variable unnecessarily

2021-11-26 Thread Andreas Rheinhardt
Anton Khirnov: > fd is local to the loop iteration, it is better to store it on stack > than modify the context. > --- > libavdevice/v4l2.c | 13 ++--- > 1 file changed, 6 insertions(+), 7 deletions(-) > > diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c > index b5997fba33..777867db86

[FFmpeg-devel] [PATCH 2/9] lavf/v4l2: do not use a context variable unnecessarily

2021-11-25 Thread Anton Khirnov
fd is local to the loop iteration, it is better to store it on stack than modify the context. --- libavdevice/v4l2.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index b5997fba33..777867db86 100644 --- a/libavdevice/v4l2.