Paul B Mahol:
> Signed-off-by: Paul B Mahol <[email protected]>
> ---
> +    bytestream2_init_writer(&s->pb, pkt->data, pkt->size);
> +
> +    bytestream2_put_be32(&s->pb, 0x00);
> +
> +    pal = av_packet_new_side_data(pkt, AV_PKT_DATA_PALETTE, AVPALETTE_SIZE);

Missing check for allocation failure.

> +    memcpy(pal, frame->data[1], AVPALETTE_SIZE);
> +
> +    smc_encode_stream(s, pict);
> +
> +    av_shrink_packet(pkt, bytestream2_tell_p(&s->pb));
> +
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to