]> granicus.if.org Git - handbrake/commitdiff
Improve an error message.
authorRodeo <tdskywalker@gmail.com>
Fri, 14 Jun 2013 20:18:41 +0000 (20:18 +0000)
committerRodeo <tdskywalker@gmail.com>
Fri, 14 Jun 2013 20:18:41 +0000 (20:18 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/qsv@5578 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/enc_qsv.c

index 2cea94a41ffd8538143661818169b2ad7d4eb766..6693b6f0183a931f8bd1fc7e76f0169a0cf1f3d4 100644 (file)
@@ -645,8 +645,17 @@ int encqsvInit( hb_work_object_t * w, hb_job_t * job )
         (profile != PROFILE_BASELINE) &&
         (hb_qsv_info->features & HB_QSV_FEATURE_DECODE_TIMESTAMPS) == 0)
     {
-        hb_error("encqsvInit: MediaSDK < 1.6, unsupported feature B-frames in MP4 container;"
-                 " please update your driver, use the MKV container or Baseline profile");
+        if (hb_qsv_info->cpu_platform == HB_CPU_PLATFORM_INTEL_SNB)
+        {
+            // hardware is too old, updating the driver won't help
+            hb_error("encqsvInit: MediaSDK < 1.6, B-frames in MP4 container not supported;"
+                     " please try newer hardware, use the MKV container or Baseline profile");
+        }
+        else
+        {
+            hb_error("encqsvInit: MediaSDK < 1.6, B-frames in MP4 container not supported;"
+                     " please update your driver, use the MKV container or Baseline profile");
+        }
         *job->die = 1;
         return -1;
     }