summaryrefslogtreecommitdiff
path: root/libavformat/dv.c
diff options
context:
space:
mode:
authorRoman Shaposhnik <roman@shaposhnik.org>2008-08-27 20:28:11 +0000
committerRoman Shaposhnik <roman@shaposhnik.org>2008-08-27 20:28:11 +0000
commit34fab90f1848ff652fdcab5ca9815b31261b7aa3 (patch)
treeaa00470821b55876f4bb26ce2f15f04976b62c87 /libavformat/dv.c
parentf4acfa3887f21abbe9680b2da2813c205c843cbe (diff)
Two cosmetic changes for improved readability and ease of HDVCPRO HD integration
Originally committed as revision 14999 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/dv.c')
-rw-r--r--libavformat/dv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/dv.c b/libavformat/dv.c
index 0670e5149c..c60154738c 100644
--- a/libavformat/dv.c
+++ b/libavformat/dv.c
@@ -192,7 +192,7 @@ static int dv_extract_audio_info(DVDemuxContext* c, uint8_t* frame)
smpls = as_pack[1] & 0x3f; /* samples in this frame - min. samples */
freq = (as_pack[4] >> 3) & 0x07; /* 0 - 48KHz, 1 - 44,1kHz, 2 - 32 kHz */
- stype = (as_pack[3] & 0x1f); /* 0 - 2CH, 2 - 4CH */
+ stype = (as_pack[3] & 0x1f); /* 0 - 2CH, 2 - 4CH, 3 - 8CH */
quant = as_pack[4] & 0x07; /* 0 - 16bit linear, 1 - 12bit nonlinear */
/* note: ach counts PAIRS of channels (i.e. stereo channels) */
@@ -276,7 +276,7 @@ DVDemuxContext* dv_init_demux(AVFormatContext *s)
c->sys = NULL;
c->fctx = s;
- c->ast[0] = c->ast[1] = NULL;
+ memset(c->ast, 0, sizeof(c->ast));
c->ach = 0;
c->frames = 0;
c->abytes = 0;