Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH] avfilter/ff_filter_frame_framed: Fix setting up filter frame
@ 2024-02-26 14:21 Hanna Ciebiera
  2024-02-26 14:28 ` Nicolas George
  0 siblings, 1 reply; 2+ messages in thread
From: Hanna Ciebiera @ 2024-02-26 14:21 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Hanna Ciebiera

Up to now filter_frame was incorrectly set up to dst->filter_frame in if statement. It was causing conversion failure during the transcoding.
Now, when condition in if statement is met filter_frame is set up to default_filter_frame.

Signed-off-by: Hanna Ciebiera <hanna.ciebiera@intel.com>
---
 libavfilter/avfilter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index ab7782862a..5da17f3160 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -951,7 +951,7 @@ static int ff_filter_frame_framed(AVFilterLink *link, AVFrame *frame)
     AVFilterPad *dst = link->dstpad;
     int ret;
 
-    if (!(filter_frame = dst->filter_frame))
+    if (!(filter_frame == dst->filter_frame))
         filter_frame = default_filter_frame;
 
     if (dst->flags & AVFILTERPAD_FLAG_NEEDS_WRITABLE) {
-- 
2.43.0

---------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.
Spolka oswiadcza, ze posiada status duzego przedsiebiorcy w rozumieniu ustawy z dnia 8 marca 2013 r. o przeciwdzialaniu nadmiernym opoznieniom w transakcjach handlowych.

Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [FFmpeg-devel] [PATCH] avfilter/ff_filter_frame_framed: Fix setting up filter frame
  2024-02-26 14:21 [FFmpeg-devel] [PATCH] avfilter/ff_filter_frame_framed: Fix setting up filter frame Hanna Ciebiera
@ 2024-02-26 14:28 ` Nicolas George
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas George @ 2024-02-26 14:28 UTC (permalink / raw)
  To: FFmpeg development discussions and patches

Hanna Ciebiera (12024-02-26):
> Up to now filter_frame was incorrectly set up to dst->filter_frame in
> if statement. It was causing conversion failure during the
> transcoding.
> Now, when condition in if statement is met filter_frame is set up to
> default_filter_frame.
> 
> Signed-off-by: Hanna Ciebiera <hanna.ciebiera@intel.com>

Hi. This is completely wrong. And I am pretty sure with this patch the
compiler produces a new warning that tell that it is wrong.

Regards,

-- 
  Nicolas George
_______________________________________________
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".

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-02-26 14:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-26 14:21 [FFmpeg-devel] [PATCH] avfilter/ff_filter_frame_framed: Fix setting up filter frame Hanna Ciebiera
2024-02-26 14:28 ` Nicolas George

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