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
3b56ed34
Commit
3b56ed34
authored
Dec 01, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
motionpixels: use meaningful error code
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
b912895d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
motionpixels.c
libavcodec/motionpixels.c
+3
-3
No files found.
libavcodec/motionpixels.c
View file @
3b56ed34
...
...
@@ -252,13 +252,13 @@ static int mp_decode_frame(AVCodecContext *avctx,
int
buf_size
=
avpkt
->
size
;
MotionPixelsContext
*
mp
=
avctx
->
priv_data
;
GetBitContext
gb
;
int
i
,
count1
,
count2
,
sz
;
int
i
,
count1
,
count2
,
sz
,
ret
;
mp
->
frame
.
reference
=
3
;
mp
->
frame
.
buffer_hints
=
FF_BUFFER_HINTS_VALID
|
FF_BUFFER_HINTS_PRESERVE
|
FF_BUFFER_HINTS_REUSABLE
;
if
(
avctx
->
reget_buffer
(
avctx
,
&
mp
->
frame
)
)
{
if
(
(
ret
=
avctx
->
reget_buffer
(
avctx
,
&
mp
->
frame
))
<
0
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"reget_buffer() failed
\n
"
);
return
-
1
;
return
ret
;
}
/* le32 bitstream msb first */
...
...
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