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
52771346
Commit
52771346
authored
Feb 10, 2014
by
John Stebbins
Committed by
Anton Khirnov
Feb 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: set AVFrame pkt_pts and reordered_opaque in reget_buffer
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
64774492
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
utils.c
libavcodec/utils.c
+4
-1
No files found.
libavcodec/utils.c
View file @
52771346
...
...
@@ -762,8 +762,11 @@ int ff_reget_buffer(AVCodecContext *avctx, AVFrame *frame)
if
(
!
frame
->
data
[
0
])
return
ff_get_buffer
(
avctx
,
frame
,
AV_GET_BUFFER_FLAG_REF
);
if
(
av_frame_is_writable
(
frame
))
if
(
av_frame_is_writable
(
frame
))
{
frame
->
pkt_pts
=
avctx
->
internal
->
pkt
?
avctx
->
internal
->
pkt
->
pts
:
AV_NOPTS_VALUE
;
frame
->
reordered_opaque
=
avctx
->
reordered_opaque
;
return
0
;
}
av_frame_move_ref
(
&
tmp
,
frame
);
...
...
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