projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfcbbe4
)
segfault fix
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 19 Jun 2004 00:10:21 +0000
(
00:10
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 19 Jun 2004 00:10:21 +0000
(
00:10
+0000)
Originally committed as revision 3236 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/svq3.c
patch
|
blob
|
history
diff --git
a/libavcodec/svq3.c
b/libavcodec/svq3.c
index
e064626
..
442839c
100644
(file)
--- a/
libavcodec/svq3.c
+++ b/
libavcodec/svq3.c
@@
-453,8
+453,9
@@
static int svq3_decode_mb (H264Context *h, unsigned int mb_type) {
mb_type = MB_TYPE_SKIP;
} else {
- svq3_mc_dir (h, s->next_picture.mb_type[mb_xy], PREDICT_MODE, 0, 0);
- svq3_mc_dir (h, s->next_picture.mb_type[mb_xy], PREDICT_MODE, 1, 1);
+ mb_type= FFMIN(s->next_picture.mb_type[mb_xy], 0);
+ svq3_mc_dir (h, mb_type, PREDICT_MODE, 0, 0);
+ svq3_mc_dir (h, mb_type, PREDICT_MODE, 1, 1);
mb_type = MB_TYPE_16x16;
}