Hi, just prepare your bitstream in AVPacket, and call
avcodec_decode_video2() directly

int  avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
                         int *got_picture_ptr,
                         AVPacket *avpkt)


There is no any relationship with av_open_input_file(), just forget it!

avcodec_decode_video2() is natively happy with buffer, but not a so-called FILE


On Tue, Jul 27, 2010 at 12:59 PM, Nhat Huy <[email protected]> wrote:
>
> My situation is as same as  Andy's. I get H.264 bit-stream via network,
> then have to decode it to receive YUV data. It's not a wise choice to write
> bit-stream into hard drive, and then use av_open_input_file() to open this
> bit-stream. My program must decode H.264 bit-stream, which is stored in
> memory.
>
-- 
-----------------------------------------------------------------------------------------
My key fingerprint: d1:03:f5:32:26:ff:d7:3c:e4:42:e3:51:ec:92:78:b2
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to