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
ed61f3ca
Commit
ed61f3ca
authored
Feb 25, 2014
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parser: Remove commented-out cruft
parent
5ea14d48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
parser.c
libavcodec/parser.c
+2
-9
No files found.
libavcodec/parser.c
View file @
ed61f3ca
...
@@ -97,8 +97,7 @@ void ff_fetch_timestamp(AVCodecParserContext *s, int off, int remove){
...
@@ -97,8 +97,7 @@ void ff_fetch_timestamp(AVCodecParserContext *s, int off, int remove){
if
(
s
->
cur_offset
+
off
>=
s
->
cur_frame_offset
[
i
]
if
(
s
->
cur_offset
+
off
>=
s
->
cur_frame_offset
[
i
]
&&
(
s
->
frame_offset
<
s
->
cur_frame_offset
[
i
]
||
&&
(
s
->
frame_offset
<
s
->
cur_frame_offset
[
i
]
||
(
!
s
->
frame_offset
&&
!
s
->
next_frame_offset
))
// first field/frame
(
!
s
->
frame_offset
&&
!
s
->
next_frame_offset
))
// first field/frame
// check disabled since MPEG-TS does not send complete PES packets
&&
s
->
cur_frame_end
[
i
])
{
&&
/*s->next_frame_offset + off <*/
s
->
cur_frame_end
[
i
]){
s
->
dts
=
s
->
cur_frame_dts
[
i
];
s
->
dts
=
s
->
cur_frame_dts
[
i
];
s
->
pts
=
s
->
cur_frame_pts
[
i
];
s
->
pts
=
s
->
cur_frame_pts
[
i
];
s
->
pos
=
s
->
cur_frame_pos
[
i
];
s
->
pos
=
s
->
cur_frame_pos
[
i
];
...
@@ -185,9 +184,7 @@ int av_parser_change(AVCodecParserContext *s,
...
@@ -185,9 +184,7 @@ int av_parser_change(AVCodecParserContext *s,
*
poutbuf
=
(
uint8_t
*
)
buf
;
*
poutbuf
=
(
uint8_t
*
)
buf
;
*
poutbuf_size
=
buf_size
;
*
poutbuf_size
=
buf_size
;
if
(
avctx
->
extradata
){
if
(
avctx
->
extradata
){
if
(
(
keyframe
&&
(
avctx
->
flags2
&
CODEC_FLAG2_LOCAL_HEADER
))
if
((
keyframe
&&
(
avctx
->
flags2
&
CODEC_FLAG2_LOCAL_HEADER
)))
{
/*||(s->pict_type != AV_PICTURE_TYPE_I && (s->flags & PARSER_FLAG_DUMP_EXTRADATA_AT_NOKEY))*/
/*||(? && (s->flags & PARSER_FLAG_DUMP_EXTRADATA_AT_BEGIN)*/
){
int
size
=
buf_size
+
avctx
->
extradata_size
;
int
size
=
buf_size
+
avctx
->
extradata_size
;
*
poutbuf_size
=
size
;
*
poutbuf_size
=
size
;
*
poutbuf
=
av_malloc
(
size
+
FF_INPUT_BUFFER_PADDING_SIZE
);
*
poutbuf
=
av_malloc
(
size
+
FF_INPUT_BUFFER_PADDING_SIZE
);
...
@@ -211,8 +208,6 @@ void av_parser_close(AVCodecParserContext *s)
...
@@ -211,8 +208,6 @@ void av_parser_close(AVCodecParserContext *s)
}
}
}
}
/*****************************************************/
int
ff_combine_frame
(
ParseContext
*
pc
,
int
next
,
const
uint8_t
**
buf
,
int
*
buf_size
)
int
ff_combine_frame
(
ParseContext
*
pc
,
int
next
,
const
uint8_t
**
buf
,
int
*
buf_size
)
{
{
if
(
pc
->
overread
){
if
(
pc
->
overread
){
...
@@ -285,8 +280,6 @@ void ff_parse_close(AVCodecParserContext *s)
...
@@ -285,8 +280,6 @@ void ff_parse_close(AVCodecParserContext *s)
av_freep
(
&
pc
->
buffer
);
av_freep
(
&
pc
->
buffer
);
}
}
/*************************/
int
ff_mpeg4video_split
(
AVCodecContext
*
avctx
,
int
ff_mpeg4video_split
(
AVCodecContext
*
avctx
,
const
uint8_t
*
buf
,
int
buf_size
)
const
uint8_t
*
buf
,
int
buf_size
)
{
{
...
...
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