aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avidec.c
diff options
context:
space:
mode:
authorSteve L'Homme <slhomme@divxcorp.com>2006-11-01 21:09:14 +0000
committerDiego Biurrun <diego@biurrun.de>2006-11-01 21:09:14 +0000
commite344c1ea36f228e2987e25327638771c4cedcd33 (patch)
treea455108c2e273a4791ef8cbd9b334160330121fe /libavformat/avidec.c
parent484267f3d3d1d47c9a0541316b33beca5a36b2d1 (diff)
downloadffmpeg-e344c1ea36f228e2987e25327638771c4cedcd33.tar.gz
reindentation, patch by From: Steve Lhomme, slhomme divxcorp com
Originally committed as revision 6864 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r--libavformat/avidec.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 6511595616..542c01b8ff 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -287,7 +287,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
tag1 = get_le32(pb);
handler = get_le32(pb); /* codec tag */
#ifdef DEBUG
- print_tag("strh", tag1, -1);
+ print_tag("strh", tag1, -1);
#endif
if(tag1 == MKTAG('i', 'a', 'v', 's') || tag1 == MKTAG('i', 'v', 'a', 's')){
/*
@@ -399,11 +399,11 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
get_le32(pb); /* ClrUsed */
get_le32(pb); /* ClrImportant */
- if(size > 10*4 && size<(1<<30)){
- st->codec->extradata_size= size - 10*4;
- st->codec->extradata= av_malloc(st->codec->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
- get_buffer(pb, st->codec->extradata, st->codec->extradata_size);
- }
+ if(size > 10*4 && size<(1<<30)){
+ st->codec->extradata_size= size - 10*4;
+ st->codec->extradata= av_malloc(st->codec->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
+ get_buffer(pb, st->codec->extradata, st->codec->extradata_size);
+ }
if(st->codec->extradata_size & 1) //FIXME check if the encoder really did this correctly
get_byte(pb);