summaryrefslogtreecommitdiff
path: root/src/libffmpeg
diff options
context:
space:
mode:
authorMatthias Hopf <mat@mshopf.de>2006-05-22 16:57:36 +0000
committerMatthias Hopf <mat@mshopf.de>2006-05-22 16:57:36 +0000
commite25e5998d1e8a3ffb3417a0effe1b7ce5999bbb5 (patch)
tree7e967eafae36f65784c930c30d25ae2c3821a2a2 /src/libffmpeg
parent2bb7dbae2dc7e959d2ac5d416431bfed7201c51a (diff)
downloadxine-lib-e25e5998d1e8a3ffb3417a0effe1b7ce5999bbb5.tar.gz
xine-lib-e25e5998d1e8a3ffb3417a0effe1b7ce5999bbb5.tar.bz2
Fixed gcc warnings (Adrian Schroeter).
CVS patchset: 7993 CVS date: 2006/05/22 16:57:36
Diffstat (limited to 'src/libffmpeg')
-rw-r--r--src/libffmpeg/libavcodec/truemotion1.c2
-rw-r--r--src/libffmpeg/libavutil/common.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/libffmpeg/libavcodec/truemotion1.c b/src/libffmpeg/libavcodec/truemotion1.c
index d2c9efbf8..728dbcdb7 100644
--- a/src/libffmpeg/libavcodec/truemotion1.c
+++ b/src/libffmpeg/libavcodec/truemotion1.c
@@ -322,7 +322,7 @@ static void gen_vector_table24(TrueMotion1Context *s, const uint8_t *sel_vector_
static int truemotion1_decode_header(TrueMotion1Context *s)
{
int i;
- struct frame_header header;
+ struct frame_header header = {0};
uint8_t header_buffer[128]; /* logical maximum size of the header */
const uint8_t *sel_vector_table;
diff --git a/src/libffmpeg/libavutil/common.h b/src/libffmpeg/libavutil/common.h
index 33fd59518..a0ef2faee 100644
--- a/src/libffmpeg/libavutil/common.h
+++ b/src/libffmpeg/libavutil/common.h
@@ -539,7 +539,9 @@ tend= read_time();\
#define time time_is_forbidden_due_to_security_issues
#define rand rand_is_forbidden_due_to_state_trashing
#define srand srand_is_forbidden_due_to_state_trashing
+#undef sprintf
#define sprintf sprintf_is_forbidden_due_to_security_issues_use_snprintf
+#undef strcat
#define strcat strcat_is_forbidden_due_to_security_issues_use_pstrcat
#if !(defined(LIBAVFORMAT_BUILD) || defined(_FRAMEHOOK_H))
//#define printf please_use_av_log