~ft/mcfs

74533c8ff1ab84ff0949d52c3726ccfcfc1bf76a — Sigrid Solveig Haflínudóttir 6 months ago 49dc43f master
ivf: ignore av1 codec private data
1 files changed, 3 insertions(+), 0 deletions(-)

M ivf.c
M ivf.c => ivf.c +3 -0
@@ 98,6 98,8 @@ ivfpacket(Biobuf *out, Packetctx *ctx, Packet *p, int np, uvlong ts, int key)
				goto err;

			if(ctx->codec.priv.sz > 0){
				if(ctx->fmt == FmtAv01)
					goto skip;
				if(ctx->fmt != FmtAvc1){
					werrstr("no idea what to do with codec private data for non-AVC1");
					goto err;


@@ 153,6 155,7 @@ ivfpacket(Biobuf *out, Packetctx *ctx, Packet *p, int np, uvlong ts, int key)
			}
		}

skip:
		if(key && ctx->fmt == FmtAvc1){
			for(i = 0; i < ctx->nps; i++)
				ivfframe(out, ctx->ps[i].p, ctx->ps[i].n, 0, 0);