I'm using avcodec to read packets from an h264 rtsp stream and I am trying to decode with the mmal h264 decoder. I could send packets but not receive any. I verified that the packets being sent are valid NAL packets with the leading 0x00000001 start code.
I formed format_in->extradata using avcodec's supplied sps and pps from the input stream.
So I decided to look at example_basic_2.c It would seem that the extradata that it reads from an h264 file includes both the sps, pps, AND an IDR frame. Is this supposed to be the way to form the extradata for the mmal h264 decoder?