Commit 8bb57775 authored by Michael Niedermayer's avatar Michael Niedermayer

remove redundant comments

Originally committed as revision 8661 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 955629c0
...@@ -58,8 +58,8 @@ static int vid_probe(AVProbeData *p) ...@@ -58,8 +58,8 @@ static int vid_probe(AVProbeData *p)
static int vid_read_header(AVFormatContext *s, static int vid_read_header(AVFormatContext *s,
AVFormatParameters *ap) AVFormatParameters *ap)
{ {
BVID_DemuxContext *vid = s->priv_data; // permanent data outside of function BVID_DemuxContext *vid = s->priv_data;
ByteIOContext *pb = &s->pb; // io to file ByteIOContext *pb = &s->pb;
AVStream *stream; AVStream *stream;
/* load main header. Contents: /* load main header. Contents:
...@@ -69,8 +69,6 @@ static int vid_read_header(AVFormatContext *s, ...@@ -69,8 +69,6 @@ static int vid_read_header(AVFormatContext *s,
url_fseek(pb, 5, SEEK_CUR); url_fseek(pb, 5, SEEK_CUR);
vid->nframes = get_le16(pb); 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); stream = av_new_stream(s, 0);
if (!stream) if (!stream)
return AVERROR_NOMEM; return AVERROR_NOMEM;
...@@ -115,7 +113,6 @@ static int read_frame(BVID_DemuxContext *vid, ByteIOContext *pb, AVPacket *pkt, ...@@ -115,7 +113,6 @@ static int read_frame(BVID_DemuxContext *vid, ByteIOContext *pb, AVPacket *pkt,
// save the file position for the packet, include block type // save the file position for the packet, include block type
position = url_ftell(pb) - 1; position = url_ftell(pb) - 1;
// set the block type for the decoder
vidbuf_start[vidbuf_nbytes++] = block_type; vidbuf_start[vidbuf_nbytes++] = block_type;
// get the video delay (next int16), and set the presentation time // get the video delay (next int16), and set the presentation time
...@@ -176,9 +173,9 @@ fail: ...@@ -176,9 +173,9 @@ fail:
static int vid_read_packet(AVFormatContext *s, static int vid_read_packet(AVFormatContext *s,
AVPacket *pkt) AVPacket *pkt)
{ {
BVID_DemuxContext *vid = s->priv_data; // permanent data outside of function BVID_DemuxContext *vid = s->priv_data;
ByteIOContext *pb = &s->pb; // io to file ByteIOContext *pb = &s->pb;
unsigned char block_type; // block type unsigned char block_type;
int audio_length; int audio_length;
int ret_value; int ret_value;
...@@ -198,7 +195,7 @@ static int vid_read_packet(AVFormatContext *s, ...@@ -198,7 +195,7 @@ static int vid_read_packet(AVFormatContext *s,
return ret_value; return ret_value;
case FIRST_AUDIO_BLOCK: 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) // 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->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; s->streams[1]->codec->bit_rate = s->streams[1]->codec->channels * s->streams[1]->codec->sample_rate * s->streams[1]->codec->bits_per_sample;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment