I tried to decode a series of nal units with ffmpeg (libavcodec) but I get a \"no frame\" error. I produced the nal units with the guideline at How does one encode a series of i
Try this after the codec context instantiation code:
if(pCodec->capabilities & CODEC_CAP_TRUNCATED) pCodecContext->flags |= CODEC_FLAG_TRUNCATED; /* We may send incomplete frames */ if(pCodec->capabilities & CODEC_FLAG2_CHUNKS) pCodecContext->flags2 |= CODEC_FLAG2_CHUNKS;