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
25408b2a
Commit
25408b2a
authored
Mar 09, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264: make ff_h264_frame_start static.
It is not called from outside h264.c
parent
1c4073ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
h264.c
libavcodec/h264.c
+4
-4
h264.h
libavcodec/h264.h
+0
-1
No files found.
libavcodec/h264.c
View file @
25408b2a
...
...
@@ -1595,7 +1595,7 @@ static int decode_update_thread_context(AVCodecContext *dst,
context_reinitialized
=
1
;
/* update linesize on resize. The decoder doesn't
* necessarily call
ff_
h264_frame_start in the new thread */
* necessarily call h264_frame_start in the new thread */
h
->
linesize
=
h1
->
linesize
;
h
->
uvlinesize
=
h1
->
uvlinesize
;
...
...
@@ -1738,7 +1738,7 @@ static int decode_update_thread_context(AVCodecContext *dst,
return
err
;
}
int
ff_
h264_frame_start
(
H264Context
*
h
)
static
int
h264_frame_start
(
H264Context
*
h
)
{
Picture
*
pic
;
int
i
,
ret
;
...
...
@@ -3377,7 +3377,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0)
Picture
*
prev
=
h
->
short_ref_count
?
h
->
short_ref
[
0
]
:
NULL
;
av_log
(
h
->
avctx
,
AV_LOG_DEBUG
,
"Frame num gap %d %d
\n
"
,
h
->
frame_num
,
h
->
prev_frame_num
);
if
(
ff_
h264_frame_start
(
h
)
<
0
)
if
(
h264_frame_start
(
h
)
<
0
)
return
-
1
;
h
->
prev_frame_num
++
;
h
->
prev_frame_num
%=
1
<<
h
->
sps
.
log2_max_frame_num
;
...
...
@@ -3439,7 +3439,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0)
}
if
(
!
FIELD_PICTURE
||
h0
->
first_field
)
{
if
(
ff_
h264_frame_start
(
h
)
<
0
)
{
if
(
h264_frame_start
(
h
)
<
0
)
{
h0
->
first_field
=
0
;
return
-
1
;
}
...
...
libavcodec/h264.h
View file @
25408b2a
...
...
@@ -709,7 +709,6 @@ int ff_h264_check_intra4x4_pred_mode(H264Context *h);
int
ff_h264_check_intra_pred_mode
(
H264Context
*
h
,
int
mode
,
int
is_chroma
);
void
ff_h264_hl_decode_mb
(
H264Context
*
h
);
int
ff_h264_frame_start
(
H264Context
*
h
);
int
ff_h264_decode_extradata
(
H264Context
*
h
);
int
ff_h264_decode_init
(
AVCodecContext
*
avctx
);
void
ff_h264_decode_init_vlc
(
void
);
...
...
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