Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Michael Niedermayer <michael@niedermayer.cc>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH 27/31] fftools/ffmpeg_dec: stop passing InputStream to dec_open()
Date: Thu, 25 Jan 2024 02:19:36 +0100
Message-ID: <20240125011936.GG6420@pb2> (raw)
In-Reply-To: <20240124081702.4759-27-anton@khirnov.net>


[-- Attachment #1.1: Type: text/plain, Size: 4287 bytes --]

On Wed, Jan 24, 2024 at 09:16:57AM +0100, Anton Khirnov wrote:
> ---
>  fftools/ffmpeg.h       |  3 ++-
>  fftools/ffmpeg_dec.c   | 50 +++++++++++++++++++++++++++---------------
>  fftools/ffmpeg_demux.c |  4 +++-
>  3 files changed, 37 insertions(+), 20 deletions(-)

This causes segfaults:
(ill mail you the sample)

  Metadata:
    creation_time   : 1999-10-07T10:13:38.000000Z
  Duration: 00:00:17.54, start: 0.000000, bitrate: 1980 kb/s
  Stream #0:0[0x1](eng): Video: qtrle (rle  / 0x20656C72), none, 310x280, 438202 kb/s, 25 fps, 25 tbr, 600 tbn (default)
      Metadata:
        creation_time   : 1999-10-07T10:13:38.000000Z
        handler_name    : Apple Video Media Handler
        vendor_id       : appl
        encoder         : Animation
[qtrle @ 0x16a2bf40] Unsupported colorspace: 108 bits/sample?
==24457==    at 0x13E0719: VALGRIND_PRINTF_BACKTRACE (valgrind.h:6303)
==24457==    by 0x13E1318: av_log_default_callback (log.c:404)
==24457==    by 0x13E15BF: av_vlog (log.c:439)
==24457==    by 0x13E141E: av_log (log.c:418)
==24457==    by 0xC7C031: qtrle_decode_init (qtrle.c:434)
==24457==    by 0x88AF88: avcodec_open2 (avcodec.c:337)
==24457==    by 0x2448EE: dec_open (ffmpeg_dec.c:1024)
==24457==    by 0x2486D7: ist_use (ffmpeg_demux.c:938)
==24457==    by 0x248835: ist_filter_add (ffmpeg_demux.c:973)
==24457==    by 0x253BC5: ifilter_bind_ist (ffmpeg_filter.c:676)
==24457==    by 0x254C21: init_simple_filtergraph (ffmpeg_filter.c:1072)
==24457==    by 0x26ADAB: ost_add (ffmpeg_mux_init.c:1444)
==24457==    by 0x26B491: map_auto_video (ffmpeg_mux_init.c:1550)
==24457==    by 0x26C3A1: create_streams (ffmpeg_mux_init.c:1858)
==24457==    by 0x270A6C: of_open (ffmpeg_mux_init.c:3091)
==24457==    by 0x274D48: open_files (ffmpeg_opt.c:1333)
==24457==    by 0x274F74: ffmpeg_parse_options (ffmpeg_opt.c:1387)
==24457==    by 0x289391: main (ffmpeg.c:1032)
[vist#0:0/qtrle @ 0x16a25e80] [dec:qtrle @ 0x16a2b9c0] Error while opening decoder: Invalid data found when processing input
==24457==    at 0x13E0719: VALGRIND_PRINTF_BACKTRACE (valgrind.h:6303)
==24457==    by 0x13E1318: av_log_default_callback (log.c:404)
==24457==    by 0x13E15BF: av_vlog (log.c:439)
==24457==    by 0x13E141E: av_log (log.c:418)
==24457==    by 0x24494E: dec_open (ffmpeg_dec.c:1025)
==24457==    by 0x2486D7: ist_use (ffmpeg_demux.c:938)
==24457==    by 0x248835: ist_filter_add (ffmpeg_demux.c:973)
==24457==    by 0x253BC5: ifilter_bind_ist (ffmpeg_filter.c:676)
==24457==    by 0x254C21: init_simple_filtergraph (ffmpeg_filter.c:1072)
==24457==    by 0x26ADAB: ost_add (ffmpeg_mux_init.c:1444)
==24457==    by 0x26B491: map_auto_video (ffmpeg_mux_init.c:1550)
==24457==    by 0x26C3A1: create_streams (ffmpeg_mux_init.c:1858)
==24457==    by 0x270A6C: of_open (ffmpeg_mux_init.c:3091)
==24457==    by 0x274D48: open_files (ffmpeg_opt.c:1333)
==24457==    by 0x274F74: ffmpeg_parse_options (ffmpeg_opt.c:1387)
==24457==    by 0x289391: main (ffmpeg.c:1032)
==24457==
==24457== Process terminating with default action of signal 11 (SIGSEGV)
==24457==  Bad permissions for mapped region at address 0x1B68D28
==24457==    at 0x13E45C9: av_freep (mem.c:250)
==24457==    by 0x241E09: dec_free (ffmpeg_dec.c:108)
==24457==    by 0x2449D4: dec_open (ffmpeg_dec.c:1041)
==24457==    by 0x2486D7: ist_use (ffmpeg_demux.c:938)
==24457==    by 0x248835: ist_filter_add (ffmpeg_demux.c:973)
==24457==    by 0x253BC5: ifilter_bind_ist (ffmpeg_filter.c:676)
==24457==    by 0x254C21: init_simple_filtergraph (ffmpeg_filter.c:1072)
==24457==    by 0x26ADAB: ost_add (ffmpeg_mux_init.c:1444)
==24457==    by 0x26B491: map_auto_video (ffmpeg_mux_init.c:1550)
==24457==    by 0x26C3A1: create_streams (ffmpeg_mux_init.c:1858)
==24457==    by 0x270A6C: of_open (ffmpeg_mux_init.c:3091)
==24457==    by 0x274D48: open_files (ffmpeg_opt.c:1333)
==24457==    by 0x274F74: ffmpeg_parse_options (ffmpeg_opt.c:1387)
==24457==    by 0x289391: main (ffmpeg.c:1032)


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Into a blind darkness they enter who follow after the Ignorance,
they as if into a greater darkness enter who devote themselves
to the Knowledge alone. -- Isha Upanishad

[-- 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".

  reply	other threads:[~2024-01-25  1:19 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-24  8:16 [FFmpeg-devel] [PATCH 01/31] fftools/ffmpeg_dec: split Decoder into a private and public part Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 02/31] fftools/ffmpeg_dec: export subtitle_header in Decoder Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 03/31] fftools/ffmpeg_filter: consolidate decoder/filter type checks Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 04/31] fftools/ffmpeg: make decoding AVCodecContext private to the decoder Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 05/31] fftools/ffmpeg_dec: add an AVClass to Decoder Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 06/31] fftools/ffmpeg_dec: pass decoder options as an argument to dec_open() Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 07/31] fftools/ffmpeg_dec: move decoding counters from InputStream to Decoder Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 08/31] fftools/ffmpeg_dec: drop useless and racy code Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 09/31] fftools/ffmpeg_dec: drop a useless log message Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 10/31] fftools/ffmpeg: move decoder existence check to a more appropriate place Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 11/31] fftools/ffmpeg_dec: override video SAR with AVCodecParameters value Anton Khirnov
2024-03-24 22:09   ` Michael Niedermayer
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 12/31] fftools/ffmpeg_dec: stop accesing InputStream.fix_sub_duration Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 13/31] fftools/ffmpeg: refactor disabling decoder threading for attached pictures Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 14/31] fftools/ffmpeg_dec: replace InputFile.format_nots with a decoder flag Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 15/31] fftools/ffmpeg: move hwaccel_retrieve_data() from ffmpeg_hw to ffmpeg_dec Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 16/31] fftools/ffmpeg_dec: pass hwaccel options to the decoder in a separate struct Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 17/31] fftools/ffmpeg_dec: move flags to DecoderOpts Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 18/31] fftools/ffmpeg_dec: pass forced/estimated framerate though DecoderOpts Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 19/31] fftools/ffmpeg_dec: move setting compute_edt to demuxer Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 20/31] fftools/ffmpeg_dec: pass input timebase through DecoderOpts Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 21/31] fftools/ffmpeg_dec: pass top_field_first " Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 22/31] fftools/ffmpeg_dec: pass decoder name " Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 23/31] fftools/ffmpeg_dec: eliminate InputStream use in hw_device_setup_for_decode() Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 24/31] fftools/ffmpeg_dec: pass AVCodec through DecoderOpts Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 25/31] fftools/ffmpeg_dec: pass AVCodecParameters " Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 26/31] fftools/ffmpeg_dec: remove unnecessary InputStream arguments Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 27/31] fftools/ffmpeg_dec: stop passing InputStream to dec_open() Anton Khirnov
2024-01-25  1:19   ` Michael Niedermayer [this message]
2024-01-28  9:40     ` [FFmpeg-devel] [PATCH v2 " Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 28/31] fftools/ffmpeg_dec: eliminate all remaining InputStream uses Anton Khirnov
2024-01-24  8:16 ` [FFmpeg-devel] [PATCH 29/31] fftools/ffmpeg: make InputStream.decoding_needed private to demuxer Anton Khirnov
2024-01-24  8:17 ` [FFmpeg-devel] [PATCH 30/31] fftools/ffmpeg: make InputStream.decoder_opts " Anton Khirnov
2024-01-24  8:17 ` [FFmpeg-devel] [PATCH 31/31] fftools/ffmpeg: cosmetics, vertically align Input{File, Stream} Anton Khirnov

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=20240125011936.GG6420@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