This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit f88b741dbf242864e0c47b58e59dcbd67207c74b Author: Niklas Haas <[email protected]> AuthorDate: Sat Aug 29 13:48:22 2026 +0200 Commit: Niklas Haas <[email protected]> CommitDate: Mon Aug 31 10:56:08 2026 +0000 avcodec/j2kenc: init bitstream after writing SOP Otherwise, *sop remains uninitialized if the sop is written. Sponsored-by: nxtedition AB Signed-off-by: Niklas Haas <[email protected]> --- libavcodec/j2kenc.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libavcodec/j2kenc.c b/libavcodec/j2kenc.c index e517a552d1..6493ebe499 100644 --- a/libavcodec/j2kenc.c +++ b/libavcodec/j2kenc.c @@ -721,15 +721,16 @@ static int encode_packet(Jpeg2000EncoderContext *s, Jpeg2000ResLevel *rlevel, in { int bandno, empty = 1; int i; - // init bitstream - *s->buf = 0; - s->bit_index = 0; - if (s->sop) { bytestream_put_be16(&s->buf, JPEG2000_SOP); bytestream_put_be16(&s->buf, 4); bytestream_put_be16(&s->buf, packetno); } + + // init bitstream + *s->buf = 0; + s->bit_index = 0; + // header if (!layno) { -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
