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
98fd8a78
Commit
98fd8a78
authored
11 years ago
by
Michael Niedermayer
Browse files
Options
Downloads
Patches
Plain Diff
avcodec: Remove ff_packet_free_side_data, use av_packet_free_side_data
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
a5ef7960
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
libavcodec/avpacket.c
+0
-9
0 additions, 9 deletions
libavcodec/avpacket.c
libavcodec/internal.h
+0
-5
0 additions, 5 deletions
libavcodec/internal.h
libavcodec/utils.c
+4
-4
4 additions, 4 deletions
libavcodec/utils.c
with
4 additions
and
18 deletions
libavcodec/avpacket.c
+
0
−
9
View file @
98fd8a78
...
@@ -29,15 +29,6 @@
...
@@ -29,15 +29,6 @@
#include
"bytestream.h"
#include
"bytestream.h"
#include
"internal.h"
#include
"internal.h"
void
ff_packet_free_side_data
(
AVPacket
*
pkt
)
{
int
i
;
for
(
i
=
0
;
i
<
pkt
->
side_data_elems
;
i
++
)
av_free
(
pkt
->
side_data
[
i
].
data
);
av_freep
(
&
pkt
->
side_data
);
pkt
->
side_data_elems
=
0
;
}
#if FF_API_DESTRUCT_PACKET
#if FF_API_DESTRUCT_PACKET
void
av_destruct_packet
(
AVPacket
*
pkt
)
void
av_destruct_packet
(
AVPacket
*
pkt
)
...
...
This diff is collapsed.
Click to expand it.
libavcodec/internal.h
+
0
−
5
View file @
98fd8a78
...
@@ -140,11 +140,6 @@ int ff_init_buffer_info(AVCodecContext *s, AVFrame *frame);
...
@@ -140,11 +140,6 @@ int ff_init_buffer_info(AVCodecContext *s, AVFrame *frame);
void
avpriv_color_frame
(
AVFrame
*
frame
,
const
int
color
[
4
]);
void
avpriv_color_frame
(
AVFrame
*
frame
,
const
int
color
[
4
]);
/**
* Remove and free all side data from packet.
*/
void
ff_packet_free_side_data
(
AVPacket
*
pkt
);
extern
volatile
int
ff_avcodec_locked
;
extern
volatile
int
ff_avcodec_locked
;
int
ff_lock_avcodec
(
AVCodecContext
*
log_ctx
);
int
ff_lock_avcodec
(
AVCodecContext
*
log_ctx
);
int
ff_unlock_avcodec
(
void
);
int
ff_unlock_avcodec
(
void
);
...
...
This diff is collapsed.
Click to expand it.
libavcodec/utils.c
+
4
−
4
View file @
98fd8a78
...
@@ -1712,7 +1712,7 @@ int attribute_align_arg avcodec_encode_audio(AVCodecContext *avctx,
...
@@ -1712,7 +1712,7 @@ int attribute_align_arg avcodec_encode_audio(AVCodecContext *avctx,
avctx
->
coded_frame
->
key_frame
=
!!
(
pkt
.
flags
&
AV_PKT_FLAG_KEY
);
avctx
->
coded_frame
->
key_frame
=
!!
(
pkt
.
flags
&
AV_PKT_FLAG_KEY
);
}
}
/* free any side data since we cannot return it */
/* free any side data since we cannot return it */
ff
_packet_free_side_data
(
&
pkt
);
av
_packet_free_side_data
(
&
pkt
);
if
(
frame
&&
frame
->
extended_data
!=
frame
->
data
)
if
(
frame
&&
frame
->
extended_data
!=
frame
->
data
)
av_freep
(
&
frame
->
extended_data
);
av_freep
(
&
frame
->
extended_data
);
...
@@ -2001,7 +2001,7 @@ int attribute_align_arg avcodec_decode_video2(AVCodecContext *avctx, AVFrame *pi
...
@@ -2001,7 +2001,7 @@ int attribute_align_arg avcodec_decode_video2(AVCodecContext *avctx, AVFrame *pi
avctx
->
pkt
=
NULL
;
avctx
->
pkt
=
NULL
;
if
(
did_split
)
{
if
(
did_split
)
{
ff
_packet_free_side_data
(
&
tmp
);
av
_packet_free_side_data
(
&
tmp
);
if
(
ret
==
tmp
.
size
)
if
(
ret
==
tmp
.
size
)
ret
=
avpkt
->
size
;
ret
=
avpkt
->
size
;
}
}
...
@@ -2177,7 +2177,7 @@ int attribute_align_arg avcodec_decode_audio4(AVCodecContext *avctx,
...
@@ -2177,7 +2177,7 @@ int attribute_align_arg avcodec_decode_audio4(AVCodecContext *avctx,
avctx
->
pkt
=
NULL
;
avctx
->
pkt
=
NULL
;
if
(
did_split
)
{
if
(
did_split
)
{
ff
_packet_free_side_data
(
&
tmp
);
av
_packet_free_side_data
(
&
tmp
);
if
(
ret
==
tmp
.
size
)
if
(
ret
==
tmp
.
size
)
ret
=
avpkt
->
size
;
ret
=
avpkt
->
size
;
}
}
...
@@ -2352,7 +2352,7 @@ int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub,
...
@@ -2352,7 +2352,7 @@ int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub,
}
}
if
(
did_split
)
{
if
(
did_split
)
{
ff
_packet_free_side_data
(
&
tmp
);
av
_packet_free_side_data
(
&
tmp
);
if
(
ret
==
tmp
.
size
)
if
(
ret
==
tmp
.
size
)
ret
=
avpkt
->
size
;
ret
=
avpkt
->
size
;
}
}
...
...
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