]> git.sesse.net Git - ffmpeg/commitdiff
v4l2: remove one forgotten use of AVFormatParameters.pix_fmt.
authorAnton Khirnov <anton@khirnov.net>
Sun, 29 May 2011 13:22:45 +0000 (15:22 +0200)
committerAnton Khirnov <anton@khirnov.net>
Thu, 2 Jun 2011 19:52:15 +0000 (21:52 +0200)
libavdevice/v4l2.c

index d9dce33b9edf34953b350f27a913fd772ac953e1..0cd4f38389e2f7f1998a512758a2211138f3a7e0 100644 (file)
@@ -642,7 +642,7 @@ static int v4l2_read_header(AVFormatContext *s1, AVFormatParameters *ap)
     desired_format = device_try_init(s1, pix_fmt, &s->width, &s->height, &codec_id);
     if (desired_format == 0) {
         av_log(s1, AV_LOG_ERROR, "Cannot find a proper format for "
-               "codec_id %d, pix_fmt %d.\n", s1->video_codec_id, ap->pix_fmt);
+               "codec_id %d, pix_fmt %d.\n", s1->video_codec_id, pix_fmt);
         close(s->fd);
 
         res = AVERROR(EIO);