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
b0e7a932
Commit
b0e7a932
authored
May 05, 2011
by
Baptiste Coudurier
Committed by
Michael Niedermayer
May 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SVQ3: Check that things match up after a frame.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
8811679c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
svq3.c
libavcodec/svq3.c
+13
-1
No files found.
libavcodec/svq3.c
View file @
b0e7a932
...
...
@@ -932,7 +932,7 @@ static int svq3_decode_frame(AVCodecContext *avctx,
H264Context
*
h
=
&
svq3
->
h
;
MpegEncContext
*
s
=
&
h
->
s
;
int
buf_size
=
avpkt
->
size
;
int
m
,
mb_type
;
int
m
,
mb_type
,
left
;
/* special case for last picture */
if
(
buf_size
==
0
)
{
...
...
@@ -1054,6 +1054,18 @@ static int svq3_decode_frame(AVCodecContext *avctx,
ff_draw_horiz_band
(
s
,
16
*
s
->
mb_y
,
16
);
}
left
=
buf_size
*
8
-
get_bits_count
(
&
s
->
gb
);
if
(
s
->
mb_y
!=
s
->
mb_height
||
s
->
mb_x
!=
s
->
mb_width
)
{
av_log
(
avctx
,
AV_LOG_INFO
,
"frame num %d incomplete pic x %d y %d left %d
\n
"
,
avctx
->
frame_number
,
s
->
mb_y
,
s
->
mb_x
,
left
);
//av_hex_dump(stderr, buf+buf_size-8, 8);
}
if
(
left
<
0
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"frame num %d left %d
\n
"
,
avctx
->
frame_number
,
left
);
return
-
1
;
}
MPV_frame_end
(
s
);
if
(
s
->
pict_type
==
AV_PICTURE_TYPE_B
||
s
->
low_delay
)
{
...
...
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