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
2ff81d09
Commit
2ff81d09
authored
May 01, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/utils/ff_init_buffer_info factor avctx->internal->pkt; out
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
bbc60402
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
utils.c
libavcodec/utils.c
+8
-6
No files found.
libavcodec/utils.c
View file @
2ff81d09
...
...
@@ -747,17 +747,19 @@ FF_ENABLE_DEPRECATION_WARNINGS
int
ff_init_buffer_info
(
AVCodecContext
*
avctx
,
AVFrame
*
frame
)
{
if
(
avctx
->
internal
->
pkt
)
{
AVPacket
*
pkt
=
avctx
->
internal
->
pkt
;
if
(
pkt
)
{
uint8_t
*
packet_sd
;
AVFrameSideData
*
frame_sd
;
int
size
;
frame
->
pkt_pts
=
avctx
->
internal
->
pkt
->
pts
;
av_frame_set_pkt_pos
(
frame
,
avctx
->
internal
->
pkt
->
pos
);
av_frame_set_pkt_duration
(
frame
,
avctx
->
internal
->
pkt
->
duration
);
av_frame_set_pkt_size
(
frame
,
avctx
->
internal
->
pkt
->
size
);
frame
->
pkt_pts
=
pkt
->
pts
;
av_frame_set_pkt_pos
(
frame
,
pkt
->
pos
);
av_frame_set_pkt_duration
(
frame
,
pkt
->
duration
);
av_frame_set_pkt_size
(
frame
,
pkt
->
size
);
/* copy the replaygain data to the output frame */
packet_sd
=
av_packet_get_side_data
(
avctx
->
internal
->
pkt
,
AV_PKT_DATA_REPLAYGAIN
,
&
size
);
packet_sd
=
av_packet_get_side_data
(
pkt
,
AV_PKT_DATA_REPLAYGAIN
,
&
size
);
if
(
packet_sd
)
{
frame_sd
=
av_frame_new_side_data
(
frame
,
AV_FRAME_DATA_REPLAYGAIN
,
size
);
if
(
!
frame_sd
)
...
...
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