Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
099e57bc
Commit
099e57bc
authored
11 years ago
by
Paul B Mahol
Browse files
Options
Downloads
Patches
Plain Diff
zmbvenc: remove unused AVFrame from encoder private context
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
3bec6a44
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/zmbvenc.c
+1
-4
1 addition, 4 deletions
libavcodec/zmbvenc.c
with
1 addition
and
4 deletions
libavcodec/zmbvenc.c
+
1
−
4
View file @
099e57bc
...
@@ -44,8 +44,6 @@
...
@@ -44,8 +44,6 @@
*/
*/
typedef
struct
ZmbvEncContext
{
typedef
struct
ZmbvEncContext
{
AVCodecContext
*
avctx
;
AVCodecContext
*
avctx
;
AVFrame
pic
;
int
range
;
int
range
;
uint8_t
*
comp_buf
,
*
work_buf
;
uint8_t
*
comp_buf
,
*
work_buf
;
uint8_t
pal
[
768
];
uint8_t
pal
[
768
];
...
@@ -121,7 +119,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
...
@@ -121,7 +119,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
const
AVFrame
*
pict
,
int
*
got_packet
)
const
AVFrame
*
pict
,
int
*
got_packet
)
{
{
ZmbvEncContext
*
const
c
=
avctx
->
priv_data
;
ZmbvEncContext
*
const
c
=
avctx
->
priv_data
;
AVFrame
*
const
p
=
&
c
->
pic
;
AVFrame
*
const
p
=
(
AVFrame
*
)
pic
t
;
uint8_t
*
src
,
*
prev
,
*
buf
;
uint8_t
*
src
,
*
prev
,
*
buf
;
uint32_t
*
palptr
;
uint32_t
*
palptr
;
int
keyframe
,
chpal
;
int
keyframe
,
chpal
;
...
@@ -134,7 +132,6 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
...
@@ -134,7 +132,6 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
c
->
curfrm
++
;
c
->
curfrm
++
;
if
(
c
->
curfrm
==
c
->
keyint
)
if
(
c
->
curfrm
==
c
->
keyint
)
c
->
curfrm
=
0
;
c
->
curfrm
=
0
;
*
p
=
*
pict
;
p
->
pict_type
=
keyframe
?
AV_PICTURE_TYPE_I
:
AV_PICTURE_TYPE_P
;
p
->
pict_type
=
keyframe
?
AV_PICTURE_TYPE_I
:
AV_PICTURE_TYPE_P
;
p
->
key_frame
=
keyframe
;
p
->
key_frame
=
keyframe
;
chpal
=
!
keyframe
&&
memcmp
(
p
->
data
[
1
],
c
->
pal2
,
1024
);
chpal
=
!
keyframe
&&
memcmp
(
p
->
data
[
1
],
c
->
pal2
,
1024
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment