From 0ec1780ee70bb9e1270aaaa7cf1fcc40e78a0aa8 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Sat, 30 Jul 2011 00:39:41 +0000 Subject: libhb: fix an avcodec error check They changed the error value returned git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4144 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/encavcodec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c index 0474dd612..c613fa717 100644 --- a/libhb/encavcodec.c +++ b/libhb/encavcodec.c @@ -199,7 +199,7 @@ int encavcodecInit( hb_work_object_t * w, hb_job_t * job ) ret = av_set_string3( context, name, value, 1, NULL ); /* Let avutil sanity check the options for us*/ - if( ret == AVERROR(ENOENT) ) + if( ret == AVERROR_OPTION_NOT_FOUND ) hb_log( "avcodec options: Unknown option %s", name ); if( ret == AVERROR(EINVAL) ) hb_log( "avcodec options: Bad argument %s=%s", name, value ? value : "(null)" ); -- cgit v1.2.3