Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
8bb57775
Commit
8bb57775
authored
Apr 07, 2007
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove redundant comments
Originally committed as revision 8661 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
955629c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
bethsoftvid.c
libavformat/bethsoftvid.c
+6
-9
No files found.
libavformat/bethsoftvid.c
View file @
8bb57775
...
...
@@ -58,8 +58,8 @@ static int vid_probe(AVProbeData *p)
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 @@ static int vid_read_header(AVFormatContext *s,
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 @@ static int read_frame(BVID_DemuxContext *vid, ByteIOContext *pb, AVPacket *pkt,
// 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 @@ fail:
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 @@ static int vid_read_packet(AVFormatContext *s,
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment