comparison mpegvideo.c @ 5723:49a5d44423ef libavcodec

h264/PAFF preparation: use DELAYED_PIC_REF to mark non-refs frames as held for delayed output patch by Jeff Downs, heydowns a borg d com original thread: Subject: [FFmpeg-devel] [PATCH] Implement PAFF in H.264 Date: 18/09/07 20:30
author andoma
date Wed, 26 Sep 2007 13:28:13 +0000
parents 1766e8863911
children e8145dd711b5
comparison
equal deleted inserted replaced
5722:d1707b860013 5723:49a5d44423ef
905 else{ 905 else{
906 i= ff_find_unused_picture(s, 0); 906 i= ff_find_unused_picture(s, 0);
907 pic= (AVFrame*)&s->picture[i]; 907 pic= (AVFrame*)&s->picture[i];
908 } 908 }
909 909
910 pic->reference= (s->pict_type != B_TYPE || s->codec_id == CODEC_ID_H264) 910 pic->reference= 0;
911 && !s->dropable ? 3 : 0; 911 if (!s->dropable){
912 if (s->codec_id == CODEC_ID_H264)
913 pic->reference = s->picture_structure;
914 else if (s->pict_type != B_TYPE)
915 pic->reference = 3;
916 }
912 917
913 pic->coded_picture_number= s->coded_picture_number++; 918 pic->coded_picture_number= s->coded_picture_number++;
914 919
915 if( alloc_picture(s, (Picture*)pic, 0) < 0) 920 if( alloc_picture(s, (Picture*)pic, 0) < 0)
916 return -1; 921 return -1;