equal
deleted
inserted
replaced
315 |
315 |
316 g_pVFrame = av_frame_alloc(); |
316 g_pVFrame = av_frame_alloc(); |
317 if (!g_pVFrame) |
317 if (!g_pVFrame) |
318 return FatalError("Could not allocate frame"); |
318 return FatalError("Could not allocate frame"); |
319 |
319 |
|
320 g_pVFrame->width = g_Width; |
|
321 g_pVFrame->height = g_Height; |
|
322 g_pVFrame->format = AV_PIX_FMT_YUV420P; |
320 g_pVFrame->linesize[0] = g_Width; |
323 g_pVFrame->linesize[0] = g_Width; |
321 g_pVFrame->linesize[1] = g_Width/2; |
324 g_pVFrame->linesize[1] = g_Width/2; |
322 g_pVFrame->linesize[2] = g_Width/2; |
325 g_pVFrame->linesize[2] = g_Width/2; |
323 g_pVFrame->linesize[3] = 0; |
326 g_pVFrame->linesize[3] = 0; |
324 return 0; |
327 return 0; |