summaryrefslogtreecommitdiff
path: root/libavdevice/x11grab.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-07-17 07:45:33 +0200
committerAnton Khirnov <anton@khirnov.net>2011-08-15 19:59:48 +0200
commitc14fe6bc99eba55c6e52b3f3c606bb458f8a0a8e (patch)
treecfa74cd6c190a908314abca96d9c2f2f59b1d7fb /libavdevice/x11grab.c
parenta7c93dae55c045499ffb34a84f8d5031ae594cf9 (diff)
lavf,lavd: remove all usage of AVFormatParameters from demuxers.
AVFormatParameters are converted into corresponding private options in av_open_input_file/stream() compat wrappers, so accessing them from demuxers is redundant.
Diffstat (limited to 'libavdevice/x11grab.c')
-rw-r--r--libavdevice/x11grab.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/libavdevice/x11grab.c b/libavdevice/x11grab.c
index 09f6b51161..5cc32dc20d 100644
--- a/libavdevice/x11grab.c
+++ b/libavdevice/x11grab.c
@@ -183,14 +183,6 @@ x11grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
av_log(s1, AV_LOG_ERROR, "Could not parse framerate: %s.\n", x11grab->framerate);
goto out;
}
-#if FF_API_FORMAT_PARAMETERS
- if (ap->width > 0)
- x11grab->width = ap->width;
- if (ap->height > 0)
- x11grab->height = ap->height;
- if (ap->time_base.num)
- framerate = (AVRational){ap->time_base.den, ap->time_base.num};
-#endif
av_log(s1, AV_LOG_INFO, "device: %s -> display: %s x: %d y: %d width: %d height: %d\n",
s1->filename, param, x_off, y_off, x11grab->width, x11grab->height);