On Jan 28, 2012 1:53 AM, "David Henry" <[email protected]> wrote: > > I'm working on an application where if a UDP transport stream is lost/dropped for some time, I want to insert blank frames of video and silence for > audio. ... > I would like to create blank frames in a separate thread. I tried just creating an output buffer, same size I get back from sws_scale() and doing a memset() 0 on it, but then my player plays a green frame for that video.
You should memset U and V channels to 127. If your pictures are yuv420 planar then you should set w*h bytes to 0 and after that w*h/2 to 127. BR, Alex
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
