Put strings inside struct instead of extra indirection.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Fri, 4 Nov 2011 16:05:17 +0000 (17:05 +0100)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sat, 5 Nov 2011 10:30:46 +0000 (11:30 +0100)
Saves a bit on space and relocations.
Also makes the (very hackish) lossless conversion check
in ffmpeg.c work reliably.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
libavutil/samplefmt.c

index 6f7070e..bdbbf0a 100644 (file)
@@ -23,7 +23,7 @@
 #include <string.h>
 
 typedef struct SampleFmtInfo {
-    const char *name;
+    char name[4];
     int bits;
 } SampleFmtInfo;