changeset 1994:53a26acd2cf5 libavformat

remove redundant comments
author michael
date Sat, 07 Apr 2007 22:55:15 +0000
parents c86a5a28e1cb
children df6bcc29a90c
files bethsoftvid.c
diffstat 1 files changed, 6 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/bethsoftvid.c	Sat Apr 07 22:51:05 2007 +0000
+++ b/bethsoftvid.c	Sat Apr 07 22:55:15 2007 +0000
@@ -58,8 +58,8 @@
 static int vid_read_header(AVFormatContext *s,
                             AVFormatParameters *ap)
 {
-    BVID_DemuxContext *vid = s->priv_data;     // permanent data outside of function
-    ByteIOContext *pb = &s->pb;                // io to file
+    BVID_DemuxContext *vid = s->priv_data;
+    ByteIOContext *pb = &s->pb;
     AVStream *stream;
 
     /* load main header. Contents:
@@ -69,8 +69,6 @@
     url_fseek(pb, 5, SEEK_CUR);
     vid->nframes = get_le16(pb);
 
-    // FFmpeg central code will use this; don't need to return or anything
-    // initialize the bethsoft codec
     stream = av_new_stream(s, 0);
     if (!stream)
         return AVERROR_NOMEM;
@@ -115,7 +113,6 @@
     // save the file position for the packet, include block type
     position = url_ftell(pb) - 1;
 
-    // set the block type for the decoder
     vidbuf_start[vidbuf_nbytes++] = block_type;
 
     // get the video delay (next int16), and set the presentation time
@@ -176,9 +173,9 @@
 static int vid_read_packet(AVFormatContext *s,
                            AVPacket *pkt)
 {
-    BVID_DemuxContext *vid = s->priv_data;     // permanent data outside of function
-    ByteIOContext *pb = &s->pb;                // io to file
-    unsigned char block_type;                  // block type
+    BVID_DemuxContext *vid = s->priv_data;
+    ByteIOContext *pb = &s->pb;
+    unsigned char block_type;
     int audio_length;
     int ret_value;
 
@@ -198,7 +195,7 @@
             return ret_value;
 
         case FIRST_AUDIO_BLOCK:
-            get_le16(pb); //    some unused constant
+            get_le16(pb);
             // soundblaster DAC used for sample rate, as on specification page (link above)
             s->streams[1]->codec->sample_rate = 1000000 / (256 - get_byte(pb));
             s->streams[1]->codec->bit_rate = s->streams[1]->codec->channels * s->streams[1]->codec->sample_rate * s->streams[1]->codec->bits_per_sample;