Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
To: ffmpeg-devel@ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH v3] Add avpriv_slicethread_create2() and avpriv_slicethread_execute2(), make execute() and execute2() return FFMIN() of thread return codes
Date: Mon, 26 Sep 2022 16:01:53 +0200
Message-ID: <AS8P250MB07448E65614FF4DD15023BAC8F529@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <AS8P250MB07448E0C01C899CA3D7022F38F529@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM>

Andreas Rheinhardt:
> Tomas Härdin:
>> diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
>> index abeebbb002..50e73c86fa 100644
>> --- a/libswscale/swscale_internal.h
>> +++ b/libswscale/swscale_internal.h
>> @@ -306,7 +306,7 @@ typedef struct SwsContext {
>>  
>>      AVSliceThread      *slicethread;
>>      struct SwsContext **slice_ctx;
>> -    int                *slice_err;
>> +    attribute_deprecated int *slice_err; ///< @deprecated Not used any more. Removing it would require a bunch of asm to be rewritten.
>>      int              nb_slice_ctx;
>>  
>>      // values passed to current sws_receive_slice() call
> 
> What asm would need to be rewritten? (I presume that no asm code
> accesses slice_err, because doing so would be insane and because you
> already stop allocating slice_err in this patch. Is it because of
> hardcoded offsets of other fields? Which fields? Why is there no
> corresponding AV_CHECK_OFFSET for them?)
> 
> Anyway, we don't deprecate internal fields; if we have to keep them
> around for ABI compatibility, we wrap them in #if LIBFOO_VERSION_MAJOR <
> BAR.
> 

Ok, just moving this led me to the issue: An assert in line 751 of
libswscale/x86/swscale.c.

This is actually very frightening. A dev who does not use x86 could
break x86 any time.

- Andreas

_______________________________________________
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:[~2022-09-26 14:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-26 13:46 Tomas Härdin
2022-09-26 13:50 ` Andreas Rheinhardt
2022-09-26 13:54   ` James Almer
2022-09-26 14:14     ` Tomas Härdin
2022-09-26 13:58 ` Andreas Rheinhardt
2022-09-26 14:01   ` Andreas Rheinhardt [this message]
2022-09-26 14:02   ` Tomas Härdin
2022-09-26 14:28     ` Andreas Rheinhardt
2022-09-26 14:44       ` Tomas Härdin

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=AS8P250MB07448E65614FF4DD15023BAC8F529@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM \
    --to=andreas.rheinhardt@outlook.com \
    --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