aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/vfwcap.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/vfwcap.c
parenta7c93dae55c045499ffb34a84f8d5031ae594cf9 (diff)
downloadffmpeg-c14fe6bc99eba55c6e52b3f3c606bb458f8a0a8e.tar.gz
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/vfwcap.c')
-rw-r--r--libavdevice/vfwcap.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c
index 80f9d00e9c..47a9ebeb9c 100644
--- a/libavdevice/vfwcap.c
+++ b/libavdevice/vfwcap.c
@@ -267,11 +267,6 @@ static int vfw_read_header(AVFormatContext *s, AVFormatParameters *ap)
return AVERROR(EIO);
}
-#if FF_API_FORMAT_PARAMETERS
- if (ap->time_base.num)
- framerate_q = (AVRational){ap->time_base.den, ap->time_base.num};
-#endif
-
ctx->hwnd = capCreateCaptureWindow(NULL, 0, 0, 0, 0, 0, HWND_MESSAGE, 0);
if(!ctx->hwnd) {
av_log(s, AV_LOG_ERROR, "Could not create capture window.\n");
@@ -329,12 +324,6 @@ static int vfw_read_header(AVFormatContext *s, AVFormatParameters *ap)
goto fail_bi;
}
}
-#if FF_API_FORMAT_PARAMETERS
- if (ap->width > 0)
- bi->bmiHeader.biWidth = ap->width;
- if (ap->height > 0)
- bi->bmiHeader.biHeight = ap->height;
-#endif
if (0) {
/* For testing yet unsupported compressions