diff options
author | Rodeo <[email protected]> | 2013-08-26 20:23:30 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2013-08-26 20:23:30 +0000 |
commit | 620263207a75aa83aa417c08a55f8906af6f3685 (patch) | |
tree | 7ad03bb08f4b594a9e70a80550771a8dc355f64f | |
parent | 15360796b3cf3e4b581a71b4e875d7cba9c62903 (diff) |
enc_qsv: fix crash.
This was caused by trying to encode even when encoder initialization failed (qsv_enc_init).
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5752 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | libhb/enc_qsv.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libhb/enc_qsv.c b/libhb/enc_qsv.c index 0c8a221e5..e38a4b510 100644 --- a/libhb/enc_qsv.c +++ b/libhb/enc_qsv.c @@ -1092,6 +1092,12 @@ int encqsvWork( hb_work_object_t * w, hb_buffer_t ** buf_in, } *buf_out = NULL; + if (*job->die) + { + // unrecoverable error in qsv_enc_init + return HB_WORK_DONE; + } + if( in->size <= 0 ) { // do delayed frames yet |