From: Michael Niedermayer <michael@niedermayer.cc>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH v2] avcodec/jpeg2000dec: support of 2 fields in 1 AVPacket
Date: Thu, 25 Apr 2024 02:59:21 +0200
Message-ID: <20240425005921.GY6420@pb2> (raw)
In-Reply-To: <309dc932-eca9-42a6-a0b8-97827065647c@mediaarea.net>
[-- Attachment #1.1: Type: text/plain, Size: 1850 bytes --]
On Wed, Apr 24, 2024 at 01:20:02PM +0200, Jerome Martinez wrote:
> Hi, I'm bumping this patch proposal for avoiding a situation where FFmpeg
> skips half the visual content when 2 jpeg2000 codestreams are present in one
> frame. I re-reviewed this discussion and think I answered all concerns. I'm
> hesitant with patch v3 because I consider that touching frame_worker_thread
> for this feature is not so useful but I am ok with either patch v2 or v3.
> Thanks much,
> Jérôme
I hope i applied the correct patch:
libavcodec/avcodec.h | 14 ++++++++++++++
libavcodec/codec_par.c | 3 +++
libavcodec/codec_par.h | 5 +++++
libavcodec/decode.c | 3 +++
libavcodec/defs.h | 7 +++++++
libavcodec/jpeg2000dec.c | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------
libavcodec/jpeg2000dec.h | 6 ++++++
libavcodec/pthread_frame.c | 3 +++
libavformat/mxfdec.c | 14 ++++++++++++++
9 files changed, 118 insertions(+), 10 deletions(-)
but that with:
./ffmpeg -i ~/tickets/1102/ntsc2.mxf -bitexact -vframes 1 /tmp/file.bmp
segafaults:
==1031087== Invalid write of size 2
==1031087== at 0x9D758F: jpeg2000_decode_tile (in ffmpeg/ffmpeg_g)
==1031087== by 0x7C3820: avcodec_default_execute2 (in ffmpeg/ffmpeg_g)
==1031087== by 0x9DCE6E: jpeg2000_decode_frame (in ffmpeg/ffmpeg_g)
==1031087== by 0xAF912F: frame_worker_thread (in ffmpeg/ffmpeg_g)
==1031087== by 0x4A00608: start_thread (pthread_create.c:477)
==1031087== by 0x8104352: clone (clone.S:95)
==1031087== Address 0x0 is not stack'd, malloc'd or (recently) free'd
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
While the State exists there can be no freedom; when there is freedom there
will be no State. -- Vladimir Lenin
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
[-- Attachment #2: Type: text/plain, Size: 251 bytes --]
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
prev parent reply other threads:[~2024-04-25 0:59 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-02 15:55 [FFmpeg-devel] [PATCH] " Jerome Martinez
2024-02-03 10:00 ` Tomas Härdin
2024-02-03 10:51 ` Jerome Martinez
2024-02-03 19:58 ` Tomas Härdin
2024-02-03 20:04 ` Tomas Härdin
2024-02-04 0:20 ` Pierre-Anthony Lemieux
2024-02-05 0:19 ` Tomas Härdin
2024-02-15 15:02 ` Jerome Martinez
2024-02-16 0:02 ` Vittorio Giovara
2024-02-16 2:17 ` Kieran Kunhya
2024-02-18 23:14 ` Tomas Härdin
2024-02-19 11:08 ` Tomas Härdin
2024-02-19 11:19 ` Jerome Martinez
2024-02-16 10:32 ` Anton Khirnov
2024-02-18 23:43 ` Marton Balint
2024-02-19 8:22 ` Hendrik Leppkes
2024-02-19 16:14 ` Devin Heitmueller
2024-02-19 11:05 ` Tomas Härdin
2024-02-19 11:07 ` Tomas Härdin
2024-02-05 2:25 ` James Almer
2024-02-05 14:28 ` Tomas Härdin
2024-02-20 15:07 ` [FFmpeg-devel] [PATCH v2] " Jerome Martinez
2024-02-21 13:11 ` Tomas Härdin
2024-02-21 14:27 ` Jerome Martinez
2024-02-24 12:26 ` Tomas Härdin
2024-02-25 4:14 ` [FFmpeg-devel] [PATCH v3] " Jerome Martinez
2024-03-01 22:29 ` Tomas Härdin
2024-03-03 17:07 ` Jerome Martinez
2024-04-24 11:20 ` [FFmpeg-devel] [PATCH v2] " Jerome Martinez
2024-04-24 22:54 ` Tomas Härdin
2024-04-25 0:59 ` Michael Niedermayer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240425005921.GY6420@pb2 \
--to=michael@niedermayer.cc \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git