[FFmpeg-cvslog] avdevice/fbdev_dec: use errno instead of ret for av_log

Michael Niedermayer git at videolan.org
Wed Oct 29 21:56:55 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Oct 29 21:44:19 2014 +0100| [7729f4331296f8292062f0ea7604a30576a70f2c] | committer: Michael Niedermayer

avdevice/fbdev_dec: use errno instead of ret for av_log

Should fix printing the wrong value

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7729f4331296f8292062f0ea7604a30576a70f2c
---

 libavdevice/fbdev_dec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavdevice/fbdev_dec.c b/libavdevice/fbdev_dec.c
index e21a0ab..f56408c 100644
--- a/libavdevice/fbdev_dec.c
+++ b/libavdevice/fbdev_dec.c
@@ -183,7 +183,7 @@ static int fbdev_read_packet(AVFormatContext *avctx, AVPacket *pkt)
     /* refresh fbdev->varinfo, visible data position may change at each call */
     if (ioctl(fbdev->fd, FBIOGET_VSCREENINFO, &fbdev->varinfo) < 0) {
         av_log(avctx, AV_LOG_WARNING,
-               "Error refreshing variable info: %s\n", av_err2str(ret));
+               "Error refreshing variable info: %s\n", av_err2str(AVERROR(errno)));
     }
 
     pkt->pts = curtime;



More information about the ffmpeg-cvslog mailing list