peace. I am trying to capture the rtsp mjpeg stream from an IP camera (in real time) as described in http://www.inb.uni-luebeck.de/~boehme/using_libavcodec.html but ported to a newer version. It works well with the mpeg file (loading it as one AVPacket), but when working with the stream, avcodec_decode_video2 returns -1 (error). AVPacket in this case is part of the frame.
How can i fix this?
source share