hello everybody,
i want to ask a question about my broken frames in my project.
i am using ffmpeg funtions to work efficiently and when i get frame it looks like this
This is a sample)
this is my function in code
buffer=malloc(numBytes);
avpicture_fill((AVPicture *)pFrameRGB, buffer, PIX_FMT_RGB24,
pCodecCtx->width, pCodecCtx->height);
how can i fix this problem?
i want to ask a question about my broken frames in my project.
i am using ffmpeg funtions to work efficiently and when i get frame it looks like this


this is my function in code
buffer=malloc(numBytes);
avpicture_fill((AVPicture *)pFrameRGB, buffer, PIX_FMT_RGB24,
pCodecCtx->width, pCodecCtx->height);
how can i fix this problem?