The saveFrame function in tutorial one differs from the .c file. HTML // Write pixel data for(y=0; ydata[0]+y*pFrame->linesize[0], 1, width*3, pFile); .C // Write pixel data for(y=0; y<height; y++) fwrite(pFrame->data[0]+y*pFrame->linesize[0], 1, width*3, pFile); Regards, mark