From b7e64fba7f37cc0399beae844f0a5dbef9219376 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Wed, 4 May 2016 00:15:41 +0200 Subject: Reduce the scope of some variables This avoids unused variable warnings after the next version bump. Also drop a trace level av_log() call that is in the way. --- libavdevice/v4l2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavdevice') diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index 46db25dbd3..b59f29f554 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -853,9 +853,9 @@ static int v4l2_read_header(AVFormatContext *s1) static int v4l2_read_packet(AVFormatContext *s1, AVPacket *pkt) { - struct video_data *s = s1->priv_data; #if FF_API_CODED_FRAME FF_DISABLE_DEPRECATION_WARNINGS + struct video_data *s = s1->priv_data; AVFrame *frame = s1->streams[0]->codec->coded_frame; FF_ENABLE_DEPRECATION_WARNINGS #endif -- cgit v1.2.3