mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-17 15:08:09 +08:00
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.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user