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
218baf10
Commit
218baf10
authored
Nov 06, 2002
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
Originally committed as revision 1173 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
81ada1ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
mjpeg.c
libavcodec/mjpeg.c
+6
-4
No files found.
libavcodec/mjpeg.c
View file @
218baf10
...
...
@@ -470,11 +470,11 @@ void mjpeg_picture_header(MpegEncContext *s)
put_bits
(
&
s
->
pb
,
8
,
0
);
/* Ah/Al (not used) */
}
static
void
escape_FF
(
MpegEncContext
*
s
)
static
void
escape_FF
(
MpegEncContext
*
s
,
int
start
)
{
int
size
=
get_bit_count
(
&
s
->
pb
)
-
s
->
header_bits
;
int
size
=
get_bit_count
(
&
s
->
pb
)
-
s
tart
*
8
;
int
i
,
ff_count
;
uint8_t
*
buf
=
s
->
pb
.
buf
+
(
s
->
header_bits
>>
3
)
;
uint8_t
*
buf
=
s
->
pb
.
buf
+
start
;
int
align
=
(
-
(
int
)(
buf
))
&
3
;
assert
((
size
&
7
)
==
0
);
...
...
@@ -533,7 +533,9 @@ void mjpeg_picture_trailer(MpegEncContext *s)
put_bits
(
&
s
->
pb
,
pad
,
0xFF
>>
(
8
-
pad
));
flush_put_bits
(
&
s
->
pb
);
escape_FF
(
s
);
assert
((
s
->
header_bits
&
7
)
==
0
);
escape_FF
(
s
,
s
->
header_bits
>>
3
);
put_marker
(
&
s
->
pb
,
EOI
);
}
...
...
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