Mercurial > libavcodec.hg
changeset 9416:d863de897b41 libavcodec
Assert that the first list1 entry is a reference frame.
author | michael |
---|---|
date | Sun, 12 Apr 2009 13:58:03 +0000 |
parents | 141badec76fc |
children | 8d228c29a338 |
files | h264.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/h264.c Sun Apr 12 13:17:37 2009 +0000 +++ b/h264.c Sun Apr 12 13:58:03 2009 +0000 @@ -993,6 +993,8 @@ 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