aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-29 21:44:19 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-10-29 21:44:19 +0100
commit7729f4331296f8292062f0ea7604a30576a70f2c (patch)
tree25bd1284e05ea590d9f3b05df800523c3293a16d
parent265c4771cc764372104ba8f6abfdde9239f4c0ad (diff)
downloadffmpeg-7729f4331296f8292062f0ea7604a30576a70f2c.tar.gz
avdevice/fbdev_dec: use errno instead of ret for av_log
Should fix printing the wrong value Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavdevice/fbdev_dec.c2
1 files changed, 1 insertions, 1 deletions
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;