From 7729f4331296f8292062f0ea7604a30576a70f2c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 29 Oct 2014 21:44:19 +0100 Subject: [PATCH] avdevice/fbdev_dec: use errno instead of ret for av_log Should fix printing the wrong value Signed-off-by: Michael Niedermayer --- 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 e21a0abd16..f56408c3d4 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;