<div><font color="#000080">You can see the definition of AVPicture and AVFrame, the starting parameters are the same.</font></div><div><font color="#000080">so just use type conversion.</font>  All things is ok.</div><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "Chris Share"<cpsmusic@yahoo.com>; </div><div><b>发送时间:</b> 2013年7月2日(星期二) 晚上8:00</div><div><b>收件人:</b> "This list is about using libavco"<libav-user@ffmpeg.org>; </div><div><b>主题:</b> [Libav-user] How to Convert AVPicture to AVFrame</div></div><div><br></div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 12pt; background-color: rgb(255, 255, 255);"><div>Hi,</div><div><br></div><div style='color: rgb(0, 0, 0); font-family: "times new roman", "new york", times, serif; font-size: 16px; font-style: normal; background-color: transparent;'>I'm resurrecting a project that I was working on a few months ago. The project involves converting a series of images (pngs) into a movie.</div><div style='color: rgb(0, 0, 0); font-family: "times new roman", "new york", times, serif; font-size: 16px; font-style: normal; background-color: transparent;'><br></div><div style='color: rgb(0, 0, 0); font-family: "times new roman", "new york", times, serif; font-size: 16px; font-style: normal; background-color: transparent;'>So far I've managed to load the pngs and convert them from RGB24 to YUV420P using sws_scale(...). For each image sws_scale produces an AVPicture.</div><div style='color: rgb(0, 0, 0); font-family: "times new roman", "new york", times, serif; font-size: 16px; font-style: normal; background-color: transparent;'><br></div><div style='color: rgb(0, 0, 0); font-family: "times new roman", "new york", times, serif; font-size: 16px; font-style: normal; background-color: transparent;'>What I'm not clear about is how to convert the AVPicture to an AVFrame as per the encoding_decoding.c example.</div><div style='color: rgb(0, 0, 0); font-family: "times new roman", "new york", times, serif; font-size: 16px; font-style: normal; background-color: transparent;'><br></div><div style='color: rgb(0, 0, 0); font-family: "times new roman", "new york", times, serif; font-size: 16px; font-style: normal; background-color: transparent;'>Cheers,</div><div style='color: rgb(0, 0, 0); font-family: "times new roman", "new york", times, serif; font-size: 16px; font-style: normal; background-color: transparent;'><br></div><div style='color: rgb(0, 0, 0); font-family: "times new roman", "new york", times, serif; font-size: 16px; font-style: normal; background-color: transparent;'>Chris</div><div style='color: rgb(0, 0, 0); font-family: "times new roman", "new york", times, serif; font-size: 16px; font-style: normal; background-color: transparent;'><br></div><div style='color: rgb(0, 0, 0); font-family: "times new roman", "new york", times, serif; font-size: 16px; font-style: normal; background-color: transparent;'><br></div></div>