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
23040e2e
Commit
23040e2e
authored
Oct 27, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264: use long reading for first_mb_in_slice
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
3e7db0a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
h264.c
libavcodec/h264.c
+1
-1
h264_parser.c
libavcodec/h264_parser.c
+1
-1
No files found.
libavcodec/h264.c
View file @
23040e2e
...
...
@@ -2632,7 +2632,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
s
->
me
.
qpel_avg
=
s
->
dsp
.
avg_h264_qpel_pixels_tab
;
}
first_mb_in_slice
=
get_ue_golomb
(
&
s
->
gb
);
first_mb_in_slice
=
get_ue_golomb
_long
(
&
s
->
gb
);
if
(
first_mb_in_slice
==
0
){
//FIXME better field boundary detection
if
(
h0
->
current_slice
&&
FIELD_PICTURE
){
...
...
libavcodec/h264_parser.c
View file @
23040e2e
...
...
@@ -185,7 +185,7 @@ static inline int parse_nal_units(AVCodecParserContext *s,
s
->
key_frame
=
1
;
/* fall through */
case
NAL_SLICE
:
get_ue_golomb
(
&
h
->
s
.
gb
);
// skip first_mb_in_slice
get_ue_golomb
_long
(
&
h
->
s
.
gb
);
// skip first_mb_in_slice
slice_type
=
get_ue_golomb_31
(
&
h
->
s
.
gb
);
s
->
pict_type
=
golomb_to_pict_type
[
slice_type
%
5
];
if
(
h
->
sei_recovery_frame_cnt
>=
0
)
{
...
...
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