diff mbox series

[FFmpeg-devel,23/34] avcodec/zmbvenc: Simplify setting keyframe flag

Message ID HE1PR0301MB2154F95D43B1B0A5F9139DC78F439@HE1PR0301MB2154.eurprd03.prod.outlook.com
State Accepted
Commit 4e8d22478bc854949a9adbda97348f2997e1dc8d
Headers show
Series [FFmpeg-devel,01/34] avcodec/adpcmenc: Avoid copying packet data | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate fail Make fate failed
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate warning Make fate failed

Commit Message

Andreas Rheinhardt April 25, 2021, 10:34 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/zmbvenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tomas Härdin April 28, 2021, 7:59 a.m. UTC | #1
mån 2021-04-26 klockan 00:34 +0200 skrev Andreas Rheinhardt:
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
>  libavcodec/zmbvenc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/zmbvenc.c b/libavcodec/zmbvenc.c
> index 319381dd48..4b3416219b 100644
> --- a/libavcodec/zmbvenc.c
> +++ b/libavcodec/zmbvenc.c
> @@ -294,10 +294,10 @@ FF_ENABLE_DEPRECATION_WARNINGS
>          *buf++ = c->fmt; // format
>          *buf++ = ZMBV_BLOCK; // block width
>          *buf++ = ZMBV_BLOCK; // block height
> +        pkt->flags |= AV_PKT_FLAG_KEY;
>      }
>      memcpy(buf, c->comp_buf, c->zstream.total_out);
>  
> -    pkt->flags |= AV_PKT_FLAG_KEY*keyframe;

Looks OK

/Tomas
diff mbox series

Patch

diff --git a/libavcodec/zmbvenc.c b/libavcodec/zmbvenc.c
index 319381dd48..4b3416219b 100644
--- a/libavcodec/zmbvenc.c
+++ b/libavcodec/zmbvenc.c
@@ -294,10 +294,10 @@  FF_ENABLE_DEPRECATION_WARNINGS
         *buf++ = c->fmt; // format
         *buf++ = ZMBV_BLOCK; // block width
         *buf++ = ZMBV_BLOCK; // block height
+        pkt->flags |= AV_PKT_FLAG_KEY;
     }
     memcpy(buf, c->comp_buf, c->zstream.total_out);
 
-    pkt->flags |= AV_PKT_FLAG_KEY*keyframe;
     *got_packet = 1;
 
     return 0;