summaryrefslogtreecommitdiffstats
path: root/demux/demux_raw.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-07 19:39:45 +0100
committerwm4 <wm4@nowhere>2013-12-07 19:39:45 +0100
commit62925a5c15a76568c155259bafa1361ec139c66b (patch)
tree92eb6c3525057bb9b3fe6d22cd10b53582c53bea /demux/demux_raw.c
parentd658b115a0fcb9b313b2eb77ed860649f83257b0 (diff)
downloadmpv-62925a5c15a76568c155259bafa1361ec139c66b.tar.bz2
mpv-62925a5c15a76568c155259bafa1361ec139c66b.tar.xz
options: allow hwaccel formats in -vf format/noformat
There are 3 users of the image format option type: demux_raw, vf_format, vf_noformat. Allow the hwaccel formats (like vdpau etc.) in general, so that the filters can use it. This won't work for demux_raw, so explicitly reject these formats there.
Diffstat (limited to 'demux/demux_raw.c')
-rw-r--r--demux/demux_raw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demux/demux_raw.c b/demux/demux_raw.c
index 5ab82893e3..ecabd2e714 100644
--- a/demux/demux_raw.c
+++ b/demux/demux_raw.c
@@ -126,7 +126,7 @@ static int demux_rawvideo_open(demuxer_t *demuxer, enum demux_check check)
const char *decoder = "rawvideo";
int imgfmt = vformat;
- if (mp_format) {
+ if (mp_format && !IMGFMT_IS_HWACCEL(mp_format)) {
decoder = "mp-rawvideo";
imgfmt = mp_format;
if (!imgsize) {