equal
deleted
inserted
replaced
309 |
309 |
310 g_pVFrame = av_frame_alloc(); |
310 g_pVFrame = av_frame_alloc(); |
311 if (!g_pVFrame) |
311 if (!g_pVFrame) |
312 return FatalError("Could not allocate frame"); |
312 return FatalError("Could not allocate frame"); |
313 |
313 |
|
314 g_pVFrame->width = g_Width; |
|
315 g_pVFrame->height = g_Height; |
|
316 g_pVFrame->format = AV_PIX_FMT_YUV420P; |
314 g_pVFrame->linesize[0] = g_Width; |
317 g_pVFrame->linesize[0] = g_Width; |
315 g_pVFrame->linesize[1] = g_Width/2; |
318 g_pVFrame->linesize[1] = g_Width/2; |
316 g_pVFrame->linesize[2] = g_Width/2; |
319 g_pVFrame->linesize[2] = g_Width/2; |
317 g_pVFrame->linesize[3] = 0; |
320 g_pVFrame->linesize[3] = 0; |
318 return 0; |
321 return 0; |