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
035f6620
Commit
035f6620
authored
May 21, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg4videoparser: support using timestamps from codec.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
a6b3471c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
mpeg4video_parser.c
libavcodec/mpeg4video_parser.c
+7
-0
No files found.
libavcodec/mpeg4video_parser.c
View file @
035f6620
...
...
@@ -93,6 +93,13 @@ static int av_mpeg4_decode_header(AVCodecParserContext *s1,
if
(
s
->
width
&&
(
!
avctx
->
width
||
!
avctx
->
height
||
!
avctx
->
coded_width
||
!
avctx
->
coded_height
))
{
avcodec_set_dimensions
(
avctx
,
s
->
width
,
s
->
height
);
}
if
((
s1
->
flags
&
PARSER_FLAG_USE_CODEC_TS
)
&&
s
->
avctx
->
time_base
.
den
>
0
&&
ret
>=
0
){
av_assert1
(
s1
->
pts
==
AV_NOPTS_VALUE
);
av_assert1
(
s1
->
dts
==
AV_NOPTS_VALUE
);
s1
->
pts
=
av_rescale_q
(
s
->
time
,
(
AVRational
){
1
,
s
->
avctx
->
time_base
.
den
},
(
AVRational
){
1
,
1200000
});
}
s1
->
pict_type
=
s
->
pict_type
;
pc
->
first_picture
=
0
;
return
ret
;
...
...
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