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
a1c5cc42
Commit
a1c5cc42
authored
Oct 27, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: don't set AVFrame.pts to random numbers in decoders.
parent
2ba68dd0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
10 deletions
+0
-10
h261dec.c
libavcodec/h261dec.c
+0
-1
ituh263dec.c
libavcodec/ituh263dec.c
+0
-1
mpeg4videodec.c
libavcodec/mpeg4videodec.c
+0
-8
No files found.
libavcodec/h261dec.c
View file @
a1c5cc42
...
...
@@ -476,7 +476,6 @@ static int h261_decode_picture_header(H261Context *h)
s
->
picture_number
=
(
s
->
picture_number
&
~
31
)
+
i
;
s
->
avctx
->
time_base
=
(
AVRational
)
{
1001
,
30000
};
s
->
current_picture
.
f
.
pts
=
s
->
picture_number
;
/* PTYPE starts here */
skip_bits1
(
&
s
->
gb
);
/* split screen off */
...
...
libavcodec/ituh263dec.c
View file @
a1c5cc42
...
...
@@ -885,7 +885,6 @@ int ff_h263_decode_picture_header(MpegEncContext *s)
i
=
get_bits
(
&
s
->
gb
,
8
);
/* picture timestamp */
if
(
(
s
->
picture_number
&~
0xFF
)
+
i
<
s
->
picture_number
)
i
+=
256
;
s
->
current_picture_ptr
->
f
.
pts
=
s
->
picture_number
=
(
s
->
picture_number
&~
0xFF
)
+
i
;
/* PTYPE starts here */
...
...
libavcodec/mpeg4videodec.c
View file @
a1c5cc42
...
...
@@ -1965,14 +1965,6 @@ static int decode_vop_header(MpegEncContext *s, GetBitContext *gb){
}
}
if
(
s
->
avctx
->
time_base
.
num
)
s
->
current_picture_ptr
->
f
.
pts
=
(
s
->
time
+
s
->
avctx
->
time_base
.
num
/
2
)
/
s
->
avctx
->
time_base
.
num
;
else
s
->
current_picture_ptr
->
f
.
pts
=
AV_NOPTS_VALUE
;
if
(
s
->
avctx
->
debug
&
FF_DEBUG_PTS
)
av_log
(
s
->
avctx
,
AV_LOG_DEBUG
,
"MPEG4 PTS: %"
PRId64
"
\n
"
,
s
->
current_picture_ptr
->
f
.
pts
);
check_marker
(
gb
,
"before vop_coded"
);
/* vop coded */
...
...
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