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
288daa84
Commit
288daa84
authored
Nov 02, 2002
by
Arpi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle init error in ffmpeg12
Originally committed as revision 1141 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
80663785
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
mpeg12.c
libavcodec/mpeg12.c
+3
-2
No files found.
libavcodec/mpeg12.c
View file @
288daa84
...
...
@@ -1582,7 +1582,7 @@ static int mpeg_decode_slice(AVCodecContext *avctx,
if
(
s
->
first_slice
)
{
s
->
first_slice
=
0
;
if
(
MPV_frame_start
(
s
,
avctx
)
<
0
)
return
-
1
;
return
-
2
;
}
init_get_bits
(
&
s
->
gb
,
buf
,
buf_size
);
...
...
@@ -1928,8 +1928,9 @@ static int mpeg_decode_frame(AVCodecContext *avctx,
}
*
data_size
=
sizeof
(
AVPicture
);
goto
the_end
;
}
else
if
(
ret
==-
1
){
}
else
if
(
ret
<
0
){
printf
(
"Error while decoding slice
\n
"
);
if
(
ret
<-
1
)
return
-
1
;
}
}
break
;
...
...
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