[FFmpeg-devel] [PATCH] avcodec/openh264enc.c: generate IDR frame in response to I frame pict_type

Lou Logan lou at lrcd.com
Mon Mar 12 23:20:02 EET 2018


On Mon, 5 Mar 2018 15:01:16 +0100
Valery Kot <valery.kot at gmail.com> wrote:

> From f95943165c91dac13a644365f775aff3dd9edb11 Mon Sep 17 00:00:00 2001
> From: vkot <valery.kot at 4cinsights.com>
> Date: Mon, 5 Mar 2018 13:51:51 +0100
> Subject: [PATCH 3/3] avcodec/openh264enc.c: generate IDR frame in response to
>  I frame pict_type
> 
> ---
>  libavcodec/libopenh264enc.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c
> index fdadb101f5..12e9ad49ed 100644
> --- a/libavcodec/libopenh264enc.c
> +++ b/libavcodec/libopenh264enc.c
> @@ -245,6 +245,10 @@ static int svc_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
>      }
>      sp.iPicWidth  = avctx->width;
>      sp.iPicHeight = avctx->height;
> +    

The above line has trailing whitespace which should be avoided. You can
use tools/patcheck to check, and git should provide a warning when
applying the patch.


More information about the ffmpeg-devel mailing list