X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavdevice%2Fx11grab.c;h=722f00ff0df14848e9c4202fd63360f60a7ee1ee;hb=e37f161e66e042d6c2c7470c4d9881df9427fc4a;hp=2ecf88c2d5c08badd6581f88c46d53dd02b74a97;hpb=022f8d27dd0a61bfaae729d53d133b17418ea16b;p=ffmpeg diff --git a/libavdevice/x11grab.c b/libavdevice/x11grab.c index 2ecf88c2d5c..722f00ff0df 100644 --- a/libavdevice/x11grab.c +++ b/libavdevice/x11grab.c @@ -31,11 +31,13 @@ /** * @file - * X11 frame device demuxer by Clemens Fruhwirth - * and Edouard Gomez . + * X11 frame device demuxer + * @author Clemens Fruhwirth + * @author Edouard Gomez */ #include "config.h" +#include "libavformat/internal.h" #include "libavutil/log.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" @@ -152,7 +154,7 @@ x11grab_region_win_init(struct x11_grab *s) * */ static int -x11grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) +x11grab_read_header(AVFormatContext *s1) { struct x11_grab *x11grab = s1->priv_data; Display *dpy; @@ -199,7 +201,7 @@ x11grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) ret = AVERROR(ENOMEM); goto out; } - av_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in us */ + avpriv_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in us */ screen = DefaultScreen(dpy);