if(state==-1){ /* initialize the double frame buffer */ yuvframe[0]=malloc(video_x*video_y*3/2); yuvframe[1]=malloc(video_x*video_y*3/2); /* clear initial frame as it may be larger than actual video data */ /* fill Y plane with 0x10 and UV planes with 0X80, for black data */ memset(yuvframe[0],0x10,video_x*video_y); memset(yuvframe[0]+video_x*video_y,0x80,video_x*video_y/2); memset(yuvframe[1],0x10,video_x*video_y); memset(yuvframe[1]+video_x*video_y,0x80,video_x*video_y/2); state=0; } Seems like padding happens in the encoding-frontend, not in libtheora. -- EN: Every mail bigger than 35 KByte will be deleted automatically from my mailbox. Please contact me before sending any attachments. DE: Jede Mail gr??er als 35 KByte wird automatisch aus meinem Postfach gel?scht. Bitte kontaktieren Sie mich, wenn Sie Anh??nge schicken wollen.