changeset 32635:b05c02525cb1

Simplify video format condition in get_metadata.
author cboesch
date Sun, 19 Dec 2010 14:15:44 +0000
parents a90b910df99c
children 146fb0958630
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sun Dec 19 14:09:21 2010 +0000
+++ b/mplayer.c	Sun Dec 19 14:15:44 2010 +0000
@@ -465,16 +465,10 @@
     else if (sh_video->format == 0x10000005)
       return strdup("h264");
     else if (sh_video->format >= 0x20202020)
-    {
       snprintf(meta, sizeof(meta), "%.4s", (char *) &sh_video->format);
-      return strdup(meta);
-    }
     else
-    {
       snprintf(meta, sizeof(meta), "0x%08X", sh_video->format);
-      return strdup(meta);
-    }
-    break;
+    return strdup(meta);
 
   case META_VIDEO_BITRATE:
     snprintf(meta, sizeof(meta), "%d kbps", (int) (sh_video->i_bps * 8 / 1024));