# HG changeset patch # User cboesch # Date 1292768144 0 # Node ID b05c02525cb18770fc3e04312cd8e4e8c3cb440b # Parent a90b910df99c7787d3fb73622c595226f24cd511 Simplify video format condition in get_metadata. diff -r a90b910df99c -r b05c02525cb1 mplayer.c --- 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));