comparison libmpcodecs/ve_lavc.c @ 11672:62ca7e82de82

better top_field_first behaviour (mostly what rich suggested)
author michael
date Mon, 22 Dec 2003 20:22:06 +0000
parents ffca211f32f9
children 9165fbc7d89d
comparison
equal deleted inserted replaced
11671:f7e10875d102 11672:62ca7e82de82
699 pic->linesize[0]=mpi->stride[0]; 699 pic->linesize[0]=mpi->stride[0];
700 pic->linesize[1]=mpi->stride[1]; 700 pic->linesize[1]=mpi->stride[1];
701 pic->linesize[2]=mpi->stride[2]; 701 pic->linesize[2]=mpi->stride[2];
702 702
703 #if LIBAVCODEC_BUILD >= 4697 703 #if LIBAVCODEC_BUILD >= 4697
704 if(mpi->fields & MP_IMGFIELD_ORDERED) 704 if(lavc_param_interlaced_dct){
705 pic->top_field_first= !!(mpi->fields & MP_IMGFIELD_TOP_FIRST); 705 if((mpi->fields & MP_IMGFIELD_ORDERED) && (mpi->fields & MP_IMGFIELD_INTERLACED))
706 pic->top_field_first= !!(mpi->fields & MP_IMGFIELD_TOP_FIRST);
707 else
708 pic->top_field_first= 1;
706 709
707 if(lavc_param_top!=-1) 710 if(lavc_param_top!=-1)
708 pic->top_field_first= lavc_param_top; 711 pic->top_field_first= lavc_param_top;
712 }
709 #endif 713 #endif
710 714
711 out_size = avcodec_encode_video(lavc_venc_context, mux_v->buffer, mux_v->buffer_size, 715 out_size = avcodec_encode_video(lavc_venc_context, mux_v->buffer, mux_v->buffer_size,
712 pic); 716 pic);
713 717