mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
Merge commit '71bf6b41d9'
* commit '71bf6b41d9':
libavdevice: use avpriv_open()
Conflicts:
libavdevice/v4l2.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
95fa1fe437
4 changed files with 9 additions and 5 deletions
|
|
@ -34,6 +34,7 @@
|
|||
#include <time.h>
|
||||
#include <linux/fb.h>
|
||||
|
||||
#include "libavutil/internal.h"
|
||||
#include "libavutil/log.h"
|
||||
#include "libavutil/mem.h"
|
||||
#include "libavutil/opt.h"
|
||||
|
|
@ -108,7 +109,7 @@ static av_cold int fbdev_read_header(AVFormatContext *avctx)
|
|||
if (avctx->flags & AVFMT_FLAG_NONBLOCK)
|
||||
flags |= O_NONBLOCK;
|
||||
|
||||
if ((fbdev->fd = open(avctx->filename, flags)) == -1) {
|
||||
if ((fbdev->fd = avpriv_open(avctx->filename, flags)) == -1) {
|
||||
ret = AVERROR(errno);
|
||||
av_log(avctx, AV_LOG_ERROR,
|
||||
"Could not open framebuffer device '%s': %s\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue