Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
goto fail;
if (unit_type == 7)
goto fail;
if (unit_type == 7)
+ ctx->idr_sps_seen = ctx->new_idr = 1;
else if (unit_type == 8) {
else if (unit_type == 8) {
+ ctx->idr_pps_seen = ctx->new_idr = 1;
/* if SPS has not been seen yet, prepend the AVCC one to PPS */
if (!ctx->idr_sps_seen) {
if (ctx->sps_offset == -1)
/* if SPS has not been seen yet, prepend the AVCC one to PPS */
if (!ctx->idr_sps_seen) {
if (ctx->sps_offset == -1)