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
02e3f7d0
Commit
02e3f7d0
authored
Apr 24, 2011
by
Reimar Döffinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support PARSER_FLAG_COMPLETE_FRAMES for h261 and h263 parsers.
parent
69f58958
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
h261_parser.c
libavcodec/h261_parser.c
+4
-0
h263_parser.c
libavcodec/h263_parser.c
+4
-0
No files found.
libavcodec/h261_parser.c
View file @
02e3f7d0
...
...
@@ -70,12 +70,16 @@ static int h261_parse(AVCodecParserContext *s,
ParseContext
*
pc
=
s
->
priv_data
;
int
next
;
if
(
s
->
flags
&
PARSER_FLAG_COMPLETE_FRAMES
)
{
next
=
buf_size
;
}
else
{
next
=
h261_find_frame_end
(
pc
,
avctx
,
buf
,
buf_size
);
if
(
ff_combine_frame
(
pc
,
next
,
&
buf
,
&
buf_size
)
<
0
)
{
*
poutbuf
=
NULL
;
*
poutbuf_size
=
0
;
return
buf_size
;
}
}
*
poutbuf
=
buf
;
*
poutbuf_size
=
buf_size
;
return
next
;
...
...
libavcodec/h263_parser.c
View file @
02e3f7d0
...
...
@@ -70,6 +70,9 @@ static int h263_parse(AVCodecParserContext *s,
ParseContext
*
pc
=
s
->
priv_data
;
int
next
;
if
(
s
->
flags
&
PARSER_FLAG_COMPLETE_FRAMES
)
{
next
=
buf_size
;
}
else
{
next
=
ff_h263_find_frame_end
(
pc
,
buf
,
buf_size
);
if
(
ff_combine_frame
(
pc
,
next
,
&
buf
,
&
buf_size
)
<
0
)
{
...
...
@@ -77,6 +80,7 @@ static int h263_parse(AVCodecParserContext *s,
*
poutbuf_size
=
0
;
return
buf_size
;
}
}
*
poutbuf
=
buf
;
*
poutbuf_size
=
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