视频分量输入。
for(y=0; y
{
fwrite(picture->data[0]+y*picture->linesize[0], 1, pCodecCtx->width, f);
}
for(y=0; y
{
fwrite(picture->data[1]+y*picture->linesize[1], 1, pCodecCtx->width/2, f);
}
for(y=0; y
{
fwrite(picture->data[2]+y*picture->linesize[2], 1, pCodecCtx->width/2, f);
}