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
744bd8d0
Commit
744bd8d0
authored
Jul 14, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: set pkt_timebase
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
aa32971d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
ffmpeg.c
ffmpeg.c
+2
-0
No files found.
ffmpeg.c
View file @
744bd8d0
...
...
@@ -2357,6 +2357,7 @@ static int decode_audio(InputStream *ist, AVPacket *pkt, int *got_output)
else
avcodec_get_frame_defaults
(
ist
->
decoded_frame
);
decoded_frame
=
ist
->
decoded_frame
;
av_codec_set_pkt_timebase
(
avctx
,
ist
->
st
->
time_base
);
update_benchmark
(
NULL
);
ret
=
avcodec_decode_audio4
(
avctx
,
decoded_frame
,
got_output
,
pkt
);
...
...
@@ -2476,6 +2477,7 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output)
avcodec_get_frame_defaults
(
ist
->
decoded_frame
);
decoded_frame
=
ist
->
decoded_frame
;
pkt
->
dts
=
av_rescale_q
(
ist
->
dts
,
AV_TIME_BASE_Q
,
ist
->
st
->
time_base
);
av_codec_set_pkt_timebase
(
ist
->
st
->
codec
,
ist
->
st
->
time_base
);
update_benchmark
(
NULL
);
ret
=
avcodec_decode_video2
(
ist
->
st
->
codec
,
...
...
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