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
f858c24f
Commit
f858c24f
authored
Apr 07, 2007
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify
Originally committed as revision 8669 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
a7c405a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
bethsoftvid.c
libavformat/bethsoftvid.c
+1
-2
No files found.
libavformat/bethsoftvid.c
View file @
f858c24f
...
...
@@ -136,13 +136,12 @@ static int read_frame(BVID_DemuxContext *vid, ByteIOContext *pb, AVPacket *pkt,
if
(
rle_num_bytes
>=
0x80
){
// rle sequence
if
(
block_type
==
VIDEO_I_FRAME
)
vidbuf_start
[
vidbuf_nbytes
++
]
=
get_byte
(
pb
);
bytes_copied
+=
rle_num_bytes
-
0x80
;
}
else
if
(
rle_num_bytes
){
// plain sequence
if
(
get_buffer
(
pb
,
&
vidbuf_start
[
vidbuf_nbytes
],
rle_num_bytes
)
!=
rle_num_bytes
)
goto
fail
;
vidbuf_nbytes
+=
rle_num_bytes
;
bytes_copied
+=
rle_num_bytes
;
}
bytes_copied
+=
rle_num_bytes
&
0x7F
;
if
(
bytes_copied
==
npixels
){
// sometimes no stop character is given, need to keep track of bytes copied
// may contain a 0 byte even if read all pixels
if
(
get_byte
(
pb
))
...
...
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