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
187d7197
Commit
187d7197
authored
Jun 09, 2016
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264: Support AV_PKT_DATA_NEW_EXTRADATA
parent
75872d77
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
h264.c
libavcodec/h264.c
+13
-0
No files found.
libavcodec/h264.c
View file @
187d7197
...
...
@@ -1004,6 +1004,8 @@ static int h264_decode_frame(AVCodecContext *avctx, void *data,
AVFrame
*
pict
=
data
;
int
buf_index
=
0
;
int
ret
;
const
uint8_t
*
new_extradata
;
int
new_extradata_size
;
h
->
flags
=
avctx
->
flags
;
h
->
setup_finished
=
0
;
...
...
@@ -1042,6 +1044,17 @@ out:
return
buf_index
;
}
new_extradata_size
=
0
;
new_extradata
=
av_packet_get_side_data
(
avpkt
,
AV_PKT_DATA_NEW_EXTRADATA
,
&
new_extradata_size
);
if
(
new_extradata_size
>
0
&&
new_extradata
)
{
ret
=
ff_h264_decode_extradata
(
new_extradata
,
new_extradata_size
,
&
h
->
ps
,
&
h
->
is_avc
,
&
h
->
nal_length_size
,
avctx
->
err_recognition
,
avctx
);
if
(
ret
<
0
)
return
ret
;
}
buf_index
=
decode_nal_units
(
h
,
buf
,
buf_size
);
if
(
buf_index
<
0
)
return
AVERROR_INVALIDDATA
;
...
...
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