From: Devin Heitmueller <devin.heitmueller@ltnglobal.com>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH v5 1/6] ccfifo: Properly handle CEA-708 captions through framerate conversion
Date: Fri, 5 May 2023 11:23:43 -0400
Message-ID: <CAHGibzFF=DydEKXSZMVojo09FT4RaVCmCmjU8WQfrP1FnfiQ2A@mail.gmail.com> (raw)
In-Reply-To: <CAM=jba9huSkyQRCyxvhsn5igj-UDpzD19BZXUDzfxL9vBaW=CA@mail.gmail.com>
On Fri, May 5, 2023 at 10:10 AM Lance Wang <lance.lmwang@gmail.com> wrote:
> > +int ff_ccfifo_inject(AVCCFifo *ccf, AVFrame *frame)
> > +{
> > + AVFrameSideData *sd;
> > + int ret;
> > +
> > + if (ccf->passthrough == 1 || ccf->cc_detected == 0)
> > + return 0;
> > +
> > + sd = av_frame_new_side_data(frame, AV_FRAME_DATA_A53_CC,
> > + ff_ccfifo_getoutputsize(ccf));
> > + if (sd) {
> > + ret = ff_ccfifo_injectbytes(ccf, sd->data, sd->size);
> > + if (ret < 0) {
> > + av_frame_remove_side_data(frame, AV_FRAME_DATA_A53_CC);
> > + return AVERROR(ENOMEM);
> >
>
> prefer to return ret from ff_ccfifo_injectbytes()
Ok. I've got to regenerate patch #1 in the series anyway because of
the fate bug Michael reported, so it's easy enough to change this to
"return ret".
Thanks,
Devin
--
Devin Heitmueller, Senior Software Engineer
LTN Global Communications
o: +1 (301) 363-1001
w: https://ltnglobal.com e: devin.heitmueller@ltnglobal.com
_______________________________________________
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".
next prev parent reply other threads:[~2023-05-05 15:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-04 22:02 [FFmpeg-devel] [PATCH v5 0/6] Add support for Closed Caption FIFO Devin Heitmueller
2023-05-04 22:02 ` [FFmpeg-devel] [PATCH v5 1/6] ccfifo: Properly handle CEA-708 captions through framerate conversion Devin Heitmueller
2023-05-05 14:09 ` Lance Wang
2023-05-05 15:23 ` Devin Heitmueller [this message]
2023-05-04 22:02 ` [FFmpeg-devel] [PATCH v5 2/6] vf_fps: properly preserve CEA-708 captions Devin Heitmueller
2023-05-05 14:10 ` Michael Niedermayer
2023-05-05 14:47 ` Devin Heitmueller
2023-05-04 22:02 ` [FFmpeg-devel] [PATCH v5 3/6] yadif: Properly preserve CEA-708 closed captions Devin Heitmueller
2023-05-04 22:02 ` [FFmpeg-devel] [PATCH v5 4/6] tinterlace: " Devin Heitmueller
2023-05-04 22:02 ` [FFmpeg-devel] [PATCH v5 5/6] vf_ccrepack: Add new filter to repack CEA-708 side data Devin Heitmueller
2023-05-04 22:02 ` [FFmpeg-devel] [PATCH v5 6/6] decklink_enc: add support for playout of 608 captions in MOV files Devin Heitmueller
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='CAHGibzFF=DydEKXSZMVojo09FT4RaVCmCmjU8WQfrP1FnfiQ2A@mail.gmail.com' \
--to=devin.heitmueller@ltnglobal.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