How do I pass a raw buffer into this function?<div><br></div>I find the appropriate codec and codec context, allocate the AVFrame, and initialize the packet. When I try and set the packet's data to the buffer:<br>AVPacket packet;<div>
av_init_packet(&packet);<br>packet.data = buf;</div><div><br></div><div>where buf is the buffer received; I'm getting an error that seems to be unrelated. It says "no frame!" and returns -1.</div><div><br>
</div><div>If it helps, my AVFrame is initialized with:</div>codecFrame = avcodec_alloc_frame();<div><br></div><div>-Neil</div>