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
46c48d54
Commit
46c48d54
authored
Mar 26, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegvideo: fix null pointer dereference on switching streams
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
7b3ca7ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
mpegvideo.c
libavcodec/mpegvideo.c
+1
-0
No files found.
libavcodec/mpegvideo.c
View file @
46c48d54
...
@@ -695,6 +695,7 @@ int ff_mpeg_update_thread_context(AVCodecContext *dst,
...
@@ -695,6 +695,7 @@ int ff_mpeg_update_thread_context(AVCodecContext *dst,
s
->
input_picture_number
=
s1
->
input_picture_number
;
s
->
input_picture_number
=
s1
->
input_picture_number
;
av_assert0
(
!
s
->
picture
||
s
->
picture
!=
s1
->
picture
);
av_assert0
(
!
s
->
picture
||
s
->
picture
!=
s1
->
picture
);
if
(
s
->
picture
)
for
(
i
=
0
;
i
<
MAX_PICTURE_COUNT
;
i
++
)
{
for
(
i
=
0
;
i
<
MAX_PICTURE_COUNT
;
i
++
)
{
ff_mpeg_unref_picture
(
s
,
&
s
->
picture
[
i
]);
ff_mpeg_unref_picture
(
s
,
&
s
->
picture
[
i
]);
if
(
s1
->
picture
[
i
].
f
.
data
[
0
]
&&
if
(
s1
->
picture
[
i
].
f
.
data
[
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