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
11a8a71d
Commit
11a8a71d
authored
Jan 26, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg4 pts fix
Originally committed as revision 2724 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
e40f5d3c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
h263.c
libavcodec/h263.c
+3
-1
mpegvideo.c
libavcodec/mpegvideo.c
+8
-0
No files found.
libavcodec/h263.c
View file @
11a8a71d
...
...
@@ -2187,8 +2187,10 @@ static void mpeg4_encode_gop_header(MpegEncContext * s){
put_bits
(
&
s
->
pb
,
1
,
1
);
put_bits
(
&
s
->
pb
,
6
,
seconds
);
put_bits
(
&
s
->
pb
,
1
,
0
);
//closed gov == NO
put_bits
(
&
s
->
pb
,
1
,
!!
(
s
->
flags
&
CODEC_FLAG_CLOSED_GOP
));
put_bits
(
&
s
->
pb
,
1
,
0
);
//broken link == NO
s
->
last_time_base
=
s
->
time_base
;
ff_mpeg4_stuffing
(
&
s
->
pb
);
}
...
...
libavcodec/mpegvideo.c
View file @
11a8a71d
...
...
@@ -795,6 +795,14 @@ int MPV_encode_init(AVCodecContext *avctx)
av_log
(
avctx
,
AV_LOG_ERROR
,
"closed gop with scene change detection arent supported yet
\n
"
);
return
-
1
;
}
i
=
ff_gcd
(
avctx
->
frame_rate
,
avctx
->
frame_rate_base
);
if
(
i
>
1
){
av_log
(
avctx
,
AV_LOG_INFO
,
"removing common factors from framerate
\n
"
);
avctx
->
frame_rate
/=
i
;
avctx
->
frame_rate_base
/=
i
;
// return -1;
}
if
(
s
->
codec_id
==
CODEC_ID_MJPEG
){
s
->
intra_quant_bias
=
1
<<
(
QUANT_BIAS_SHIFT
-
1
);
//(a + x/2)/x
...
...
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