<p>On Jan 28, 2012 1:53 AM, "David Henry" <<a href="mailto:dhenry@movenetworks.com">dhenry@movenetworks.com</a>> wrote:<br>
><br>
> 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<br>
> audio.<br>
...<br>
> 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.</p>

<p>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.</p>
<p>BR,<br>
Alex</p>