Browse Source

Assert that the first list1 entry is a reference frame.

Originally committed as revision 18471 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Michael Niedermayer 17 years ago
parent
commit
7824b129a0
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/h264.c

+ 2
- 0
libavcodec/h264.c View File

@@ -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


Loading…
Cancel
Save