aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-05-04 00:15:41 +0200
committerDiego Biurrun <diego@biurrun.de>2016-05-11 12:21:25 +0200
commitb7e64fba7f37cc0399beae844f0a5dbef9219376 (patch)
tree9e23cf4f3d2067b97b0005c251c4c78e28ce2400 /libavdevice
parentbc2a32969eb4db17677971def5ad5b936d9d1648 (diff)
downloadffmpeg-b7e64fba7f37cc0399beae844f0a5dbef9219376.tar.gz
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.
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/v4l2.c2
1 files changed, 1 insertions, 1 deletions
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