diff options
author | Paul Kendall <paul@kcbbs.gen.nz> | 2008-07-29 05:39:33 +0000 |
---|---|---|
committer | Jason Garrett-Glaser <darkshikari@gmail.com> | 2008-07-29 05:39:33 +0000 |
commit | 9bec77fe8ddc0c6a5c91f15b5625fbff535279c7 (patch) | |
tree | 3bf12b67a14b7f3447e2d58edfe2e234e45ff051 /libavcodec | |
parent | 150d5a259b5118367883d328178c7a24326c834c (diff) | |
download | ffmpeg-9bec77fe8ddc0c6a5c91f15b5625fbff535279c7.tar.gz |
Use #define instead of a constant. Patch by Paul Kendall.
Originally committed as revision 14463 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/h264.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 62bc05e281..e0ede84ac2 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -978,7 +978,7 @@ static inline void pred_direct_motion(H264Context * const h, int *mb_type){ int refa = h->ref_cache[list][scan8[0] - 1]; int refb = h->ref_cache[list][scan8[0] - 8]; int refc = h->ref_cache[list][scan8[0] - 8 + 4]; - if(refc == -2) + if(refc == PART_NOT_AVAILABLE) refc = h->ref_cache[list][scan8[0] - 8 - 1]; ref[list] = FFMIN3((unsigned)refa, (unsigned)refb, (unsigned)refc); if(ref[list] < 0) |