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
898e9a24
Commit
898e9a24
authored
Nov 04, 2014
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegvideo: check mpv return value
CC: libav-stable@libav.org Bug-Id: CID 1238786
parent
fe27aeae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
mpegvideo.c
libavcodec/mpegvideo.c
+3
-1
No files found.
libavcodec/mpegvideo.c
View file @
898e9a24
...
@@ -908,6 +908,7 @@ int ff_mpeg_update_thread_context(AVCodecContext *dst,
...
@@ -908,6 +908,7 @@ int ff_mpeg_update_thread_context(AVCodecContext *dst,
// FIXME can parameters change on I-frames?
// FIXME can parameters change on I-frames?
// in that case dst may need a reinit
// in that case dst may need a reinit
if
(
!
s
->
context_initialized
)
{
if
(
!
s
->
context_initialized
)
{
int
err
;
memcpy
(
s
,
s1
,
sizeof
(
MpegEncContext
));
memcpy
(
s
,
s1
,
sizeof
(
MpegEncContext
));
s
->
avctx
=
dst
;
s
->
avctx
=
dst
;
...
@@ -915,7 +916,8 @@ int ff_mpeg_update_thread_context(AVCodecContext *dst,
...
@@ -915,7 +916,8 @@ int ff_mpeg_update_thread_context(AVCodecContext *dst,
s
->
bitstream_buffer_size
=
s
->
allocated_bitstream_buffer_size
=
0
;
s
->
bitstream_buffer_size
=
s
->
allocated_bitstream_buffer_size
=
0
;
ff_mpv_idct_init
(
s
);
ff_mpv_idct_init
(
s
);
ff_mpv_common_init
(
s
);
if
((
err
=
ff_mpv_common_init
(
s
))
<
0
)
return
err
;
}
}
if
(
s
->
height
!=
s1
->
height
||
s
->
width
!=
s1
->
width
||
s
->
context_reinit
)
{
if
(
s
->
height
!=
s1
->
height
||
s
->
width
!=
s1
->
width
||
s
->
context_reinit
)
{
...
...
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