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
f337c290
Commit
f337c290
authored
Nov 21, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eatgq: return meaningful error codes.
parent
4b7598e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
eatgq.c
libavcodec/eatgq.c
+4
-4
No files found.
libavcodec/eatgq.c
View file @
f337c290
...
...
@@ -189,12 +189,12 @@ static int tgq_decode_frame(AVCodecContext *avctx,
const
uint8_t
*
buf
=
avpkt
->
data
;
int
buf_size
=
avpkt
->
size
;
TgqContext
*
s
=
avctx
->
priv_data
;
int
x
,
y
;
int
x
,
y
,
ret
;
int
big_endian
=
AV_RL32
(
&
buf
[
4
])
>
0x000FFFFF
;
if
(
buf_size
<
16
)
{
av_log
(
avctx
,
AV_LOG_WARNING
,
"truncated header
\n
"
);
return
-
1
;
return
AVERROR_INVALIDDATA
;
}
bytestream2_init
(
&
s
->
gb
,
buf
+
8
,
buf_size
-
8
);
if
(
big_endian
)
{
...
...
@@ -217,9 +217,9 @@ static int tgq_decode_frame(AVCodecContext *avctx,
s
->
frame
.
key_frame
=
1
;
s
->
frame
.
pict_type
=
AV_PICTURE_TYPE_I
;
s
->
frame
.
buffer_hints
=
FF_BUFFER_HINTS_VALID
;
if
(
ff_get_buffer
(
avctx
,
&
s
->
frame
)
)
{
if
(
(
ret
=
ff_get_buffer
(
avctx
,
&
s
->
frame
))
<
0
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"get_buffer() failed
\n
"
);
return
-
1
;
return
ret
;
}
}
...
...
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