[MPlayer-cvslog] r37637 - trunk/vidix/unichrome_vid.c

reimar subversion at mplayerhq.hu
Tue Feb 9 21:31:41 CET 2016


Author: reimar
Date: Tue Feb  9 21:31:41 2016
New Revision: 37637

Log:
Add default case to switch.

Might avoid Coverity false positive
and make code somewhat more obvious.

Modified:
   trunk/vidix/unichrome_vid.c

Modified: trunk/vidix/unichrome_vid.c
==============================================================================
--- trunk/vidix/unichrome_vid.c	Tue Feb  9 15:23:26 2016	(r37636)
+++ trunk/vidix/unichrome_vid.c	Tue Feb  9 21:31:41 2016	(r37637)
@@ -807,6 +807,9 @@ unichrome_config_playback (vidix_playbac
       pitch = ALIGN_TO (src_w << 2, 32);
       uv_size = 0;
       break;
+
+    default: // should have been caught by is_supported_fourcc above
+      return -1;
     }
   if ((src_w > 4096) || (src_h > 4096) ||
       (src_w < 32) || (src_h < 1) || (pitch > 0x1fff))


More information about the MPlayer-cvslog mailing list