diff mbox

[FFmpeg-devel,v4,14/14] avcodec/videotoolbox: fix whitespace

Message ID 20171110214059.84891-14-ffmpeg@tmm1.net
State Accepted
Commit 5e577c586b7825b4addd1d38cf20688d7d50010d
Headers show

Commit Message

Aman Gupta Nov. 10, 2017, 9:40 p.m. UTC
From: Aman Gupta <aman@tmm1.net>

---
 libavcodec/videotoolbox.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Rodger Combs Nov. 10, 2017, 9:50 p.m. UTC | #1
Patchset LGTM.

> On Nov 10, 2017, at 15:40, Aman Gupta <ffmpeg@tmm1.net> wrote:
> 
> From: Aman Gupta <aman@tmm1.net>
> 
> ---
> libavcodec/videotoolbox.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libavcodec/videotoolbox.c b/libavcodec/videotoolbox.c
> index 9eb06e619f..04c558935d 100644
> --- a/libavcodec/videotoolbox.c
> +++ b/libavcodec/videotoolbox.c
> @@ -88,7 +88,7 @@ int ff_videotoolbox_alloc_frame(AVCodecContext *avctx, AVFrame *frame)
> 
> CFDataRef ff_videotoolbox_avcc_extradata_create(AVCodecContext *avctx)
> {
> -    H264Context *h     = avctx->priv_data;
> +    H264Context *h = avctx->priv_data;
>     CFDataRef data = NULL;
>     uint8_t *p;
>     int vt_extradata_size = 6 + 2 + h->ps.sps->data_size + 3 + h->ps.pps->data_size;
> @@ -897,7 +897,7 @@ static int videotoolbox_start(AVCodecContext *avctx)
>     case kVTVideoDecoderMalfunctionErr:
>         av_log(avctx, AV_LOG_VERBOSE, "VideoToolbox malfunction.\n");
>         return AVERROR(EINVAL);
> -    case kVTVideoDecoderBadDataErr :
> +    case kVTVideoDecoderBadDataErr:
>         av_log(avctx, AV_LOG_VERBOSE, "VideoToolbox reported invalid data.\n");
>         return AVERROR_INVALIDDATA;
>     case 0:
> -- 
> 2.14.2
>
Aman Gupta Nov. 13, 2017, 10:40 p.m. UTC | #2
On Fri, Nov 10, 2017 at 1:50 PM, Rodger Combs <rodger.combs@gmail.com>
wrote:

> Patchset LGTM.
>

Patchset applied. Thanks for the review.


>
> > On Nov 10, 2017, at 15:40, Aman Gupta <ffmpeg@tmm1.net> wrote:
> >
> > From: Aman Gupta <aman@tmm1.net>
> >
> > ---
> > libavcodec/videotoolbox.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/libavcodec/videotoolbox.c b/libavcodec/videotoolbox.c
> > index 9eb06e619f..04c558935d 100644
> > --- a/libavcodec/videotoolbox.c
> > +++ b/libavcodec/videotoolbox.c
> > @@ -88,7 +88,7 @@ int ff_videotoolbox_alloc_frame(AVCodecContext
> *avctx, AVFrame *frame)
> >
> > CFDataRef ff_videotoolbox_avcc_extradata_create(AVCodecContext *avctx)
> > {
> > -    H264Context *h     = avctx->priv_data;
> > +    H264Context *h = avctx->priv_data;
> >     CFDataRef data = NULL;
> >     uint8_t *p;
> >     int vt_extradata_size = 6 + 2 + h->ps.sps->data_size + 3 +
> h->ps.pps->data_size;
> > @@ -897,7 +897,7 @@ static int videotoolbox_start(AVCodecContext *avctx)
> >     case kVTVideoDecoderMalfunctionErr:
> >         av_log(avctx, AV_LOG_VERBOSE, "VideoToolbox malfunction.\n");
> >         return AVERROR(EINVAL);
> > -    case kVTVideoDecoderBadDataErr :
> > +    case kVTVideoDecoderBadDataErr:
> >         av_log(avctx, AV_LOG_VERBOSE, "VideoToolbox reported invalid
> data.\n");
> >         return AVERROR_INVALIDDATA;
> >     case 0:
> > --
> > 2.14.2
> >
>
>
diff mbox

Patch

diff --git a/libavcodec/videotoolbox.c b/libavcodec/videotoolbox.c
index 9eb06e619f..04c558935d 100644
--- a/libavcodec/videotoolbox.c
+++ b/libavcodec/videotoolbox.c
@@ -88,7 +88,7 @@  int ff_videotoolbox_alloc_frame(AVCodecContext *avctx, AVFrame *frame)
 
 CFDataRef ff_videotoolbox_avcc_extradata_create(AVCodecContext *avctx)
 {
-    H264Context *h     = avctx->priv_data;
+    H264Context *h = avctx->priv_data;
     CFDataRef data = NULL;
     uint8_t *p;
     int vt_extradata_size = 6 + 2 + h->ps.sps->data_size + 3 + h->ps.pps->data_size;
@@ -897,7 +897,7 @@  static int videotoolbox_start(AVCodecContext *avctx)
     case kVTVideoDecoderMalfunctionErr:
         av_log(avctx, AV_LOG_VERBOSE, "VideoToolbox malfunction.\n");
         return AVERROR(EINVAL);
-    case kVTVideoDecoderBadDataErr :
+    case kVTVideoDecoderBadDataErr:
         av_log(avctx, AV_LOG_VERBOSE, "VideoToolbox reported invalid data.\n");
         return AVERROR_INVALIDDATA;
     case 0: