you can't use avcodec_decode_video2 () to decode rtp packets. setup an AVFormatContext and use av_read_frame() and then after you get the frame, use avcodec_decode_video.
On Fri, Dec 2, 2011 at 12:05 AM, 김희숙 <[email protected]> wrote: > Hi, > > > > I'm wondering how to decode h.264 rtp packet using avcodec_decode_video2() > function. > > On encoding side, STAP-A type or FU-A mode rtp packets are sending. > > I depacketize one rtp packet and input the data(avpkt) to > avcodec_decode_video2(). > > But there are some errors and the decoding does not working. > > > > The errors are as follows: > > non-existing PPS 933740 referenced > decode_slice_header error > no frame! > > > > Please give some advice and thank you. > > > > Regards, > > HSK > > _______________________________________________ > Libav-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/libav-user > > -- - - - - Luke Clemens http://clemens.bytehammer.com
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
