This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/9.0 in repository ffmpeg.
commit 50d81a1b3c65a458c768383efbca2ef2f58bafdd Author: Niklas Haas <[email protected]> AuthorDate: Sat Aug 29 13:48:22 2026 +0200 Commit: Michael Niedermayer <[email protected]> CommitDate: Tue Nov 24 19:55:14 2026 +0100 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]> (cherry picked from commit f88b741dbf242864e0c47b58e59dcbd67207c74b) Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/j2kenc.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libavcodec/j2kenc.c b/libavcodec/j2kenc.c index cb6118924d..174d59a016 100644 --- a/libavcodec/j2kenc.c +++ b/libavcodec/j2kenc.c @@ -720,15 +720,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]
