[FFmpeg-devel] [PATCH] avcodec: add AV1 frame split bitstream filter
Tomas Härdin
tjoppen at acc.umu.se
Tue Dec 18 13:13:46 EET 2018
mån 2018-12-17 klockan 21:56 -0300 skrev James Almer:
> This will be needed by the eventual native AV1 decoder.
>
> +static int av1_frame_split_filter(AVBSFContext *ctx, AVPacket *out)
> +{
> + AV1FSplitContext *s = ctx->priv_data;
> + CodedBitstreamFragment *td = &s->temporal_unit;
> + int i, ret;
> + int split = !!s->buffer_pkt->data;
> +
> + if (!s->buffer_pkt->data) {
I was going to comment that !split might be better, but on the other
hand this makes it clear that data == NULL
Don't know enough about BSFs or AV1 to comment much else on this
/Tomas
More information about the ffmpeg-devel
mailing list