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
bd520e85
Commit
bd520e85
authored
Jan 11, 2017
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/h264_slice: drop redundant current_slice reset
It is done unconditionally in ff_h264_field_end()
parent
a91c265f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
h264_slice.c
libavcodec/h264_slice.c
+0
-2
No files found.
libavcodec/h264_slice.c
View file @
bd520e85
...
...
@@ -1797,13 +1797,11 @@ int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl,
if
(
h
->
cur_pic_ptr
&&
FIELD_PICTURE
(
h
)
&&
h
->
first_field
)
{
ret
=
ff_h264_field_end
(
h
,
h
->
slice_ctx
,
1
);
h
->
current_slice
=
0
;
if
(
ret
<
0
)
return
ret
;
}
else
if
(
h
->
cur_pic_ptr
&&
!
FIELD_PICTURE
(
h
)
&&
!
h
->
first_field
&&
h
->
nal_unit_type
==
H264_NAL_IDR_SLICE
)
{
av_log
(
h
,
AV_LOG_WARNING
,
"Broken frame packetizing
\n
"
);
ret
=
ff_h264_field_end
(
h
,
h
->
slice_ctx
,
1
);
h
->
current_slice
=
0
;
ff_thread_report_progress
(
&
h
->
cur_pic_ptr
->
tf
,
INT_MAX
,
0
);
ff_thread_report_progress
(
&
h
->
cur_pic_ptr
->
tf
,
INT_MAX
,
1
);
h
->
cur_pic_ptr
=
NULL
;
...
...
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