Browse Source

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>
tags/n2.5
Michael Niedermayer 11 years ago
parent
commit
7729f43312
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavdevice/fbdev_dec.c

+ 1
- 1
libavdevice/fbdev_dec.c View File

@@ -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;


Loading…
Cancel
Save