Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-30 00:11:25 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-12-30 00:11:29 +0400
commit9ed640015bf321b20b1e8ab8767be5b4ebcc3d0d (patch)
tree9db80a93d3424e01b7e74bd3685ba85c2cafa5f0
parent12fc0c89dc6b4f092b14f297f29dfd73fe31fecf (diff)
parentfde219cfa8f6e823c770d57b2fa2a2799a5445e2 (diff)
Merge remote-tracking branch 'cigaes/master'
* cigaes/master: lavd/xv: report if no adaptor present. Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavdevice/xv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavdevice/xv.c b/libavdevice/xv.c
index ad604825f2..a4b44c8eda 100644
--- a/libavdevice/xv.c
+++ b/libavdevice/xv.c
@@ -149,6 +149,10 @@ static int xv_write_header(AVFormatContext *s)
ret = AVERROR_EXTERNAL;
goto fail;
}
+ if (!num_adaptors) {
+ av_log(s, AV_LOG_ERROR, "No X-Video adaptors present\n");
+ return AVERROR(ENODEV);
+ }
xv->xv_port = ai[0].base_id;
XvFreeAdaptorInfo(ai);