[FFmpeg-devel] [PATCH] add FF_DECODE_ERROR_DECODE_SLICES flag for AVFrame.decode_error_flags

Michael Niedermayer michael at niedermayer.cc
Sat Jun 22 11:11:03 EEST 2019


On Fri, Jun 21, 2019 at 07:15:55AM -0700, Amir Pauker wrote:
> FF_DECODE_ERROR_DECODE_SLICES is set when decoding slices result with error(s) but the returned value from
> avcodec_receive_frame is zero
> 
> Signed-off-by: Amir Pauker <amir at livelyvideo.tv>
> ---
>  doc/APIchanges      | 3 +++
>  libavutil/frame.h   | 1 +
>  libavutil/version.h | 2 +-
>  3 files changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/doc/APIchanges b/doc/APIchanges
> index 29a1936..b5fadc2 100644
> --- a/doc/APIchanges
> +++ b/doc/APIchanges
> @@ -15,6 +15,9 @@ libavutil:     2017-10-21
>  
>  API changes, most recent first:
>  
> +2019-06-21 - XXXXXXXXXX - lavu 56.30.100 - frame.h
> +  Add FF_DECODE_ERROR_DECODE_SLICES
> +
>  2019-06-14 - XXXXXXXXXX - lavu 56.29.100 - frame.h
>    Add FF_DECODE_ERROR_CONCEALMENT_ACTIVE
>  
> diff --git a/libavutil/frame.h b/libavutil/frame.h
> index 54e682e..732b077 100644
> --- a/libavutil/frame.h
> +++ b/libavutil/frame.h
> @@ -564,6 +564,7 @@ typedef struct AVFrame {
>  #define FF_DECODE_ERROR_INVALID_BITSTREAM   1
>  #define FF_DECODE_ERROR_MISSING_REFERENCE   2
>  #define FF_DECODE_ERROR_CONCEALMENT_ACTIVE  4
> +#define FF_DECODE_ERROR_DECODE_SLICES       8

LGTM

thx


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

"I am not trying to be anyone's saviour, I'm trying to think about the
 future and not be sad" - Elon Musk

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190622/a497f0dc/attachment.sig>


More information about the ffmpeg-devel mailing list