comparison mpegvideo.c @ 5798:7b058e5183ab libavcodec

Manage Picture buffers for fields as well as frames. Pair complementary fields into one MPV Picture. Part of PAFF implementation. 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 Mon, 08 Oct 2007 17:44:38 +0000
parents a3a2968e16ad
children 0859108b4ae3
comparison
equal deleted inserted replaced
5797:cd21fd29cf7c 5798:7b058e5183ab
952 goto alloc; 952 goto alloc;
953 } 953 }
954 954
955 assert(s->pict_type == I_TYPE || (s->last_picture_ptr && s->last_picture_ptr->data[0])); 955 assert(s->pict_type == I_TYPE || (s->last_picture_ptr && s->last_picture_ptr->data[0]));
956 956
957 if(s->picture_structure!=PICT_FRAME){ 957 if(s->picture_structure!=PICT_FRAME && s->out_format != FMT_H264){
958 int i; 958 int i;
959 for(i=0; i<4; i++){ 959 for(i=0; i<4; i++){
960 if(s->picture_structure == PICT_BOTTOM_FIELD){ 960 if(s->picture_structure == PICT_BOTTOM_FIELD){
961 s->current_picture.data[i] += s->current_picture.linesize[i]; 961 s->current_picture.data[i] += s->current_picture.linesize[i];
962 } 962 }