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
7f116973
Commit
7f116973
authored
Aug 11, 2015
by
wm4
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmaldec: do not mutate user's AVCodecContext extradata field
parent
750f72d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
mmaldec.c
libavcodec/mmaldec.c
+3
-5
No files found.
libavcodec/mmaldec.c
View file @
7f116973
...
...
@@ -361,10 +361,8 @@ static av_cold int ffmmal_init_decoder(AVCodecContext *avctx)
ret
=
AVERROR
(
ENOSYS
);
goto
fail
;
}
av_bitstream_filter_filter
(
ctx
->
bsfc
,
avctx
,
NULL
,
&
dummy_p
,
&
dummy_int
,
NULL
,
0
,
0
);
}
if
(
avctx
->
extradata_size
)
{
av_bitstream_filter_filter
(
ctx
->
bsfc
,
avctx
,
"private_spspps_buf"
,
&
dummy_p
,
&
dummy_int
,
NULL
,
0
,
0
);
}
else
if
(
avctx
->
extradata_size
)
{
if
((
status
=
mmal_format_extradata_alloc
(
format_in
,
avctx
->
extradata_size
)))
goto
fail
;
format_in
->
extradata_size
=
avctx
->
extradata_size
;
...
...
@@ -453,7 +451,7 @@ static int ffmmal_add_packet(AVCodecContext *avctx, AVPacket *avpkt)
if
(
ctx
->
bsfc
)
{
uint8_t
*
tmp_data
;
int
tmp_size
;
if
((
ret
=
av_bitstream_filter_filter
(
ctx
->
bsfc
,
avctx
,
NULL
,
if
((
ret
=
av_bitstream_filter_filter
(
ctx
->
bsfc
,
avctx
,
"private_spspps_buf"
,
&
tmp_data
,
&
tmp_size
,
avpkt
->
data
,
avpkt
->
size
,
avpkt
->
flags
&
AV_PKT_FLAG_KEY
))
<
0
)
...
...
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