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] avcodec/cbs_vp8: Remove empty flush callback
@ 2024-02-18 19:39 Andreas Rheinhardt
  2024-02-19 23:26 ` Andreas Rheinhardt
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Rheinhardt @ 2024-02-18 19:39 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Andreas Rheinhardt

This callback is optional and should therefore only be set
if it actually does something.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/cbs_vp8.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/libavcodec/cbs_vp8.c b/libavcodec/cbs_vp8.c
index 065156c248..eabdef358f 100644
--- a/libavcodec/cbs_vp8.c
+++ b/libavcodec/cbs_vp8.c
@@ -353,11 +353,6 @@ static int cbs_vp8_assemble_fragment(CodedBitstreamContext *ctx,
     return AVERROR_PATCHWELCOME;
 }
 
-static void cbs_vp8_flush(CodedBitstreamContext *ctx)
-{
-    // Do nothing.
-}
-
 static const CodedBitstreamUnitTypeDescriptor cbs_vp8_unit_types[] = {
     CBS_UNIT_TYPE_INTERNAL_REF(0, VP8RawFrame, data),
     CBS_UNIT_TYPE_END_OF_LIST,
@@ -374,7 +369,5 @@ const CodedBitstreamType ff_cbs_type_vp8 = {
     .read_unit         = &cbs_vp8_read_unit,
     .write_unit        = &cbs_vp8_write_unit,
 
-    .flush             = &cbs_vp8_flush,
-
     .assemble_fragment = &cbs_vp8_assemble_fragment,
 };
-- 
2.34.1

_______________________________________________
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] avcodec/cbs_vp8: Remove empty flush callback
  2024-02-18 19:39 [FFmpeg-devel] [PATCH] avcodec/cbs_vp8: Remove empty flush callback Andreas Rheinhardt
@ 2024-02-19 23:26 ` Andreas Rheinhardt
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Rheinhardt @ 2024-02-19 23:26 UTC (permalink / raw)
  To: ffmpeg-devel

Andreas Rheinhardt:
> This callback is optional and should therefore only be set
> if it actually does something.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
>  libavcodec/cbs_vp8.c | 7 -------
>  1 file changed, 7 deletions(-)
> 
> diff --git a/libavcodec/cbs_vp8.c b/libavcodec/cbs_vp8.c
> index 065156c248..eabdef358f 100644
> --- a/libavcodec/cbs_vp8.c
> +++ b/libavcodec/cbs_vp8.c
> @@ -353,11 +353,6 @@ static int cbs_vp8_assemble_fragment(CodedBitstreamContext *ctx,
>      return AVERROR_PATCHWELCOME;
>  }
>  
> -static void cbs_vp8_flush(CodedBitstreamContext *ctx)
> -{
> -    // Do nothing.
> -}
> -
>  static const CodedBitstreamUnitTypeDescriptor cbs_vp8_unit_types[] = {
>      CBS_UNIT_TYPE_INTERNAL_REF(0, VP8RawFrame, data),
>      CBS_UNIT_TYPE_END_OF_LIST,
> @@ -374,7 +369,5 @@ const CodedBitstreamType ff_cbs_type_vp8 = {
>      .read_unit         = &cbs_vp8_read_unit,
>      .write_unit        = &cbs_vp8_write_unit,
>  
> -    .flush             = &cbs_vp8_flush,
> -
>      .assemble_fragment = &cbs_vp8_assemble_fragment,
>  };

Will apply this patch tomorrow unless there are objections.

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

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

end of thread, other threads:[~2024-02-19 23:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-18 19:39 [FFmpeg-devel] [PATCH] avcodec/cbs_vp8: Remove empty flush callback Andreas Rheinhardt
2024-02-19 23:26 ` Andreas Rheinhardt

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