aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-04-12 13:58:03 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-04-12 13:58:03 +0000
commit7824b129a048c8cfb944fe1e6ffefddf1c16eaf4 (patch)
tree6863b53bb48b6aa6bbc449f9adb067e76b7cb131
parent238ef6dadd13b9a867eaa7382bdba751e25c40b9 (diff)
downloadffmpeg-7824b129a048c8cfb944fe1e6ffefddf1c16eaf4.tar.gz
Assert that the first list1 entry is a reference frame.
Originally committed as revision 18471 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/h264.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index ff6ff567bd..ce5c71b18a 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -993,6 +993,8 @@ static inline void pred_direct_motion(H264Context * const h, int *mb_type){
unsigned int sub_mb_type;
int i8, i4;
+ assert(h->ref_list[1][0].reference&3);
+
#define MB_TYPE_16x16_OR_INTRA (MB_TYPE_16x16|MB_TYPE_INTRA4x4|MB_TYPE_INTRA16x16|MB_TYPE_INTRA_PCM)
if(IS_INTERLACED(h->ref_list[1][0].mb_type[mb_xy])){ // AFL/AFR/FR/FL -> AFL/FL