[FFmpeg-cvslog] Put strings inside struct instead of extra indirection.
Reimar Döffinger
git at videolan.org
Sat Nov 5 11:31:08 CET 2011
ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Fri Nov 4 17:05:17 2011 +0100| [5639793be90b1681e200b290fd93802dbcf84881] | committer: Reimar Döffinger
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 at gmx.de>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5639793be90b1681e200b290fd93802dbcf84881
---
libavutil/samplefmt.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavutil/samplefmt.c b/libavutil/samplefmt.c
index 6f7070e..bdbbf0a 100644
--- a/libavutil/samplefmt.c
+++ b/libavutil/samplefmt.c
@@ -23,7 +23,7 @@
#include <string.h>
typedef struct SampleFmtInfo {
- const char *name;
+ char name[4];
int bits;
} SampleFmtInfo;
More information about the ffmpeg-cvslog
mailing list