[FFmpeg-devel] [PATCH 1/2] mpegtsenc: Add support for muxing Opus in MPEG-TS

Sebastian Dröge slomo at coaxion.net
Sun Nov 1 22:24:39 CET 2015


On So, 2015-11-01 at 22:20 +0200, Sebastian Dröge wrote:
> +            data = av_malloc(pkt->size + 2 + pkt->size / 255 + 1);
> [...]
> +            n = pkt->size;
> +            i = 2;
> +            do {
> +                data[i] = FFMIN(n, 255);
> +                n -= 255;
> +                i++;
> +            } while (n > 0);

These two parts are actually wrong in some edge cases. New patch
following soon.


More information about the ffmpeg-devel mailing list