Put strings inside struct instead of extra indirection.

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>
pull/2/head
Reimar Döffinger 13 years ago
parent 0fd28e39ec
commit 5639793be9
  1. 2
      libavutil/samplefmt.c

@ -23,7 +23,7 @@
#include <string.h> #include <string.h>
typedef struct SampleFmtInfo { typedef struct SampleFmtInfo {
const char *name; char name[4];
int bits; int bits;
} SampleFmtInfo; } SampleFmtInfo;

Loading…
Cancel
Save