summaryrefslogtreecommitdiffstats
path: root/libhb/encavcodec.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-07-30 00:39:41 +0000
committerjstebbins <[email protected]>2011-07-30 00:39:41 +0000
commit0ec1780ee70bb9e1270aaaa7cf1fcc40e78a0aa8 (patch)
tree1332514d3d2b9c6bbf9096fd650f978173f1c082 /libhb/encavcodec.c
parent820483fa9921d01989cf3d32537be674d965ab10 (diff)
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
Diffstat (limited to 'libhb/encavcodec.c')
-rw-r--r--libhb/encavcodec.c2
1 files changed, 1 insertions, 1 deletions
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)" );