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
9d33bab5
Commit
9d33bab5
authored
Apr 05, 2015
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264: drop H264Context.ouputed_poc
It is only set, but never used for anything.
parent
27b0e6eb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
5 deletions
+2
-5
h264.c
libavcodec/h264.c
+2
-2
h264.h
libavcodec/h264.h
+0
-1
h264_picture.c
libavcodec/h264_picture.c
+0
-1
h264_slice.c
libavcodec/h264_slice.c
+0
-1
No files found.
libavcodec/h264.c
View file @
9d33bab5
...
@@ -598,7 +598,7 @@ static int h264_init_context(AVCodecContext *avctx, H264Context *h)
...
@@ -598,7 +598,7 @@ static int h264_init_context(AVCodecContext *avctx, H264Context *h)
h
->
recovery_frame
=
-
1
;
h
->
recovery_frame
=
-
1
;
h
->
frame_recovered
=
0
;
h
->
frame_recovered
=
0
;
h
->
outputed_poc
=
h
->
next_outputed_poc
=
INT_MIN
;
h
->
next_outputed_poc
=
INT_MIN
;
for
(
i
=
0
;
i
<
MAX_DELAYED_PIC_COUNT
;
i
++
)
for
(
i
=
0
;
i
<
MAX_DELAYED_PIC_COUNT
;
i
++
)
h
->
last_pocs
[
i
]
=
INT_MIN
;
h
->
last_pocs
[
i
]
=
INT_MIN
;
...
@@ -1047,7 +1047,7 @@ void ff_h264_flush_change(H264Context *h)
...
@@ -1047,7 +1047,7 @@ void ff_h264_flush_change(H264Context *h)
int
i
;
int
i
;
for
(
i
=
0
;
i
<
MAX_DELAYED_PIC_COUNT
;
i
++
)
for
(
i
=
0
;
i
<
MAX_DELAYED_PIC_COUNT
;
i
++
)
h
->
last_pocs
[
i
]
=
INT_MIN
;
h
->
last_pocs
[
i
]
=
INT_MIN
;
h
->
outputed_poc
=
h
->
next_outputed_poc
=
INT_MIN
;
h
->
next_outputed_poc
=
INT_MIN
;
h
->
prev_interlaced_frame
=
1
;
h
->
prev_interlaced_frame
=
1
;
idr
(
h
);
idr
(
h
);
if
(
h
->
cur_pic_ptr
)
if
(
h
->
cur_pic_ptr
)
...
...
libavcodec/h264.h
View file @
9d33bab5
...
@@ -602,7 +602,6 @@ typedef struct H264Context {
...
@@ -602,7 +602,6 @@ typedef struct H264Context {
H264Picture
*
delayed_pic
[
MAX_DELAYED_PIC_COUNT
+
2
];
// FIXME size?
H264Picture
*
delayed_pic
[
MAX_DELAYED_PIC_COUNT
+
2
];
// FIXME size?
int
last_pocs
[
MAX_DELAYED_PIC_COUNT
];
int
last_pocs
[
MAX_DELAYED_PIC_COUNT
];
H264Picture
*
next_output_pic
;
H264Picture
*
next_output_pic
;
int
outputed_poc
;
int
next_outputed_poc
;
int
next_outputed_poc
;
/**
/**
...
...
libavcodec/h264_picture.c
View file @
9d33bab5
...
@@ -161,7 +161,6 @@ int ff_h264_field_end(H264Context *h, H264SliceContext *sl, int in_setup)
...
@@ -161,7 +161,6 @@ int ff_h264_field_end(H264Context *h, H264SliceContext *sl, int in_setup)
}
}
h
->
prev_frame_num_offset
=
h
->
frame_num_offset
;
h
->
prev_frame_num_offset
=
h
->
frame_num_offset
;
h
->
prev_frame_num
=
h
->
frame_num
;
h
->
prev_frame_num
=
h
->
frame_num
;
h
->
outputed_poc
=
h
->
next_outputed_poc
;
}
}
if
(
avctx
->
hwaccel
)
{
if
(
avctx
->
hwaccel
)
{
...
...
libavcodec/h264_slice.c
View file @
9d33bab5
...
@@ -583,7 +583,6 @@ int ff_h264_update_thread_context(AVCodecContext *dst,
...
@@ -583,7 +583,6 @@ int ff_h264_update_thread_context(AVCodecContext *dst,
}
}
h
->
prev_frame_num_offset
=
h
->
frame_num_offset
;
h
->
prev_frame_num_offset
=
h
->
frame_num_offset
;
h
->
prev_frame_num
=
h
->
frame_num
;
h
->
prev_frame_num
=
h
->
frame_num
;
h
->
outputed_poc
=
h
->
next_outputed_poc
;
h
->
recovery_frame
=
h1
->
recovery_frame
;
h
->
recovery_frame
=
h1
->
recovery_frame
;
h
->
frame_recovered
=
h1
->
frame_recovered
;
h
->
frame_recovered
=
h1
->
frame_recovered
;
...
...
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