Hi,

On Fri, Aug 13, 2010 at 2:25 PM, Umakant Goyal <[email protected]> wrote:
> i have to use own RTP stack to receive data from network and use
> libavcodec API to decode data.
> Just for knowledge sake:
> if i will use libavformat/rtpdec_mpeg4.c then do i need to open codec
> and call avcodec_decode_video API of libavcodec for decoding data or
> ffmpeg itslelf will do the trick?

If you use ffmpeg.c, it does everything for you. If you use
libavformat API directly, then you have to open the codec yourself,
but the settings are all filled out for you in
AVFormatContext->streams[%d]->codec, where %d is the number of your
stream (probably 0).

Ronald
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to