[Mesa-dev] [PATCH 08/11] vl: remove assert on unknown video profile

Christian König deathsimple at vodafone.de
Wed Feb 1 15:20:01 PST 2012


It's perfectly valid to ask for an unknown
profile and get unknown code as a result.

Signed-off-by: Christian König <deathsimple at vodafone.de>
---
 src/gallium/auxiliary/util/u_video.h |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_video.h b/src/gallium/auxiliary/util/u_video.h
index be3fac2..e575947 100644
--- a/src/gallium/auxiliary/util/u_video.h
+++ b/src/gallium/auxiliary/util/u_video.h
@@ -64,7 +64,6 @@ u_reduce_video_profile(enum pipe_video_profile profile)
          return PIPE_VIDEO_CODEC_MPEG4_AVC;
 
       default:
-         assert(0);
          return PIPE_VIDEO_CODEC_UNKNOWN;
    }
 }
-- 
1.7.5.4



More information about the mesa-dev mailing list