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
ae344b2c
Commit
ae344b2c
authored
Apr 29, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: use AVFrame accessor.
parent
e296f1b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ffmpeg.c
ffmpeg.c
+4
-4
No files found.
ffmpeg.c
View file @
ae344b2c
...
...
@@ -2570,7 +2570,7 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int
AVFrame
*
decoded_frame
;
void
*
buffer_to_free
=
NULL
;
int
i
,
ret
=
0
,
resample_changed
;
int64_t
*
best_effort_timestamp
;
int64_t
best_effort_timestamp
;
AVRational
*
frame_sample_aspect
;
float
quality
;
...
...
@@ -2599,9 +2599,9 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int
return
ret
;
}
best_effort_timestamp
=
av_
opt_ptr
(
avcodec_get_frame_class
(),
decoded_frame
,
"best_effort_timestamp"
);
if
(
*
best_effort_timestamp
!=
AV_NOPTS_VALUE
)
ist
->
next_pts
=
ist
->
pts
=
decoded_frame
->
pts
=
*
best_effort_timestamp
;
best_effort_timestamp
=
av_
frame_get_best_effort_timestamp
(
decoded_frame
);
if
(
best_effort_timestamp
!=
AV_NOPTS_VALUE
)
ist
->
next_pts
=
ist
->
pts
=
decoded_frame
->
pts
=
best_effort_timestamp
;
pkt
->
size
=
0
;
...
...
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