summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2008-10-24 21:37:06 +0000
committerDiego Biurrun <diego@biurrun.de>2008-10-24 21:37:06 +0000
commit75f2c20983b5f6893f243c31df0b9b0c07f5a0b3 (patch)
treeb4967d37efca6905080d9c7fc25336b8ec8aa878 /libavformat
parent4599d22c0cd7fa952bc02375d2899d8c9a31b9ae (diff)
spelling cosmetics
Originally committed as revision 15681 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/dv.c8
-rw-r--r--libavformat/dvenc.c38
2 files changed, 24 insertions, 22 deletions
diff --git a/libavformat/dv.c b/libavformat/dv.c
index c5fecd10fb..529008b9af 100644
--- a/libavformat/dv.c
+++ b/libavformat/dv.c
@@ -116,12 +116,13 @@ static int dv_extract_audio(uint8_t* frame, uint8_t* ppcm[4],
quant = as_pack[4] & 0x07; /* 0 - 16bit linear, 1 - 12bit nonlinear */
if (quant > 1)
- return -1; /* Unsupported quantization */
+ return -1; /* unsupported quantization */
size = (sys->audio_min_samples[freq] + smpls) * 4; /* 2ch, 2bytes */
half_ch = sys->difseg_size/2;
- /* We work with 720p frames split in half, thus even frames have channels 0,1 and odd 2,3 */
+ /* We work with 720p frames split in half, thus even frames have
+ * channels 0,1 and odd 2,3 */
ipcm = (sys->height == 720 && !(frame[1]&0x0C))?2:0;
pcm = ppcm[ipcm++];
@@ -335,7 +336,8 @@ int dv_produce_packet(DVDemuxContext *c, AVPacket *pkt,
dv_extract_audio(buf, ppcm, c->sys);
c->abytes += size;
- /* We work with 720p frames split in half, thus even frames have channels 0,1 and odd 2,3 */
+ /* We work with 720p frames split in half, thus even frames have
+ * channels 0,1 and odd 2,3. */
if (c->sys->height == 720) {
if (buf[1]&0x0C)
c->audio_pkt[2].size = c->audio_pkt[3].size = 0;
diff --git a/libavformat/dvenc.c b/libavformat/dvenc.c
index 9da313a099..a0d6cff293 100644
--- a/libavformat/dvenc.c
+++ b/libavformat/dvenc.c
@@ -35,12 +35,12 @@
#include "libavutil/fifo.h"
struct DVMuxContext {
- const DVprofile* sys; /* Current DV profile. E.g.: 525/60, 625/50 */
- int n_ast; /* Number of stereo audio streams (up to 2) */
- AVStream *ast[2]; /* Stereo audio streams */
+ const DVprofile* sys; /* current DV profile, e.g.: 525/60, 625/50 */
+ int n_ast; /* number of stereo audio streams (up to 2) */
+ AVStream *ast[2]; /* stereo audio streams */
AVFifoBuffer audio_data[2]; /* FIFO for storing excessive amounts of PCM */
- int frames; /* Number of a current frame */
- time_t start_time; /* Start time of recording */
+ int frames; /* current frame number */
+ time_t start_time; /* recording start time */
int has_audio; /* frame under contruction has audio */
int has_video; /* frame under contruction has video */
uint8_t frame_buf[DV_MAX_FRAME_SIZE]; /* frame under contruction */
@@ -85,20 +85,20 @@ static int dv_write_pack(enum dv_pack_type pack_id, DVMuxContext *c, uint8_t* bu
* minute, unless it is exactly divisible by 10
*/
ltc_frame = (c->frames + 2*ct/60 - 2*ct/600) % c->sys->ltc_divisor;
- buf[1] = (0 << 7) | /* Color fame: 0 - unsync; 1 - sync mode */
- (1 << 6) | /* Drop frame timecode: 0 - nondrop; 1 - drop */
- ((ltc_frame / 10) << 4) | /* Tens of frames */
- (ltc_frame % 10); /* Units of frames */
- buf[2] = (1 << 7) | /* Biphase mark polarity correction: 0 - even; 1 - odd */
- ((tc.tm_sec / 10) << 4) | /* Tens of seconds */
- (tc.tm_sec % 10); /* Units of seconds */
- buf[3] = (1 << 7) | /* Binary group flag BGF0 */
- ((tc.tm_min / 10) << 4) | /* Tens of minutes */
- (tc.tm_min % 10); /* Units of minutes */
- buf[4] = (1 << 7) | /* Binary group flag BGF2 */
- (1 << 6) | /* Binary group flag BGF1 */
- ((tc.tm_hour / 10) << 4) | /* Tens of hours */
- (tc.tm_hour % 10); /* Units of hours */
+ buf[1] = (0 << 7) | /* color frame: 0 - unsync; 1 - sync mode */
+ (1 << 6) | /* drop frame timecode: 0 - nondrop; 1 - drop */
+ ((ltc_frame / 10) << 4) | /* tens of frames */
+ (ltc_frame % 10); /* units of frames */
+ buf[2] = (1 << 7) | /* biphase mark polarity correction: 0 - even; 1 - odd */
+ ((tc.tm_sec / 10) << 4) | /* tens of seconds */
+ (tc.tm_sec % 10); /* units of seconds */
+ buf[3] = (1 << 7) | /* binary group flag BGF0 */
+ ((tc.tm_min / 10) << 4) | /* tens of minutes */
+ (tc.tm_min % 10); /* units of minutes */
+ buf[4] = (1 << 7) | /* binary group flag BGF2 */
+ (1 << 6) | /* binary group flag BGF1 */
+ ((tc.tm_hour / 10) << 4) | /* tens of hours */
+ (tc.tm_hour % 10); /* units of hours */
break;
case dv_audio_source: /* AAUX source pack */
va_start(ap, buf);