diff mbox series

[FFmpeg-devel] avformat/gifdec: log loop count

Message ID 20210719105509.1668-1-ffmpeg@gyani.pro
State Accepted
Commit cd7043131f4e2ecf9e5a88c53d3f1a67e2402928
Headers show
Series [FFmpeg-devel] avformat/gifdec: log loop count
Related show

Checks

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

Commit Message

Gyan Doshi July 19, 2021, 10:55 a.m. UTC
---
 libavformat/gifdec.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Gyan Doshi July 20, 2021, 4:40 a.m. UTC | #1
Will push in an hour.

On 2021-07-19 16:25, Gyan Doshi wrote:
> ---
>   libavformat/gifdec.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/libavformat/gifdec.c b/libavformat/gifdec.c
> index c20bde1781..1977f46e3a 100644
> --- a/libavformat/gifdec.c
> +++ b/libavformat/gifdec.c
> @@ -247,6 +247,7 @@ static int gif_read_ext(AVFormatContext *s)
>   
>               if (sb_size == 3 && data[0] == 1) {
>                   gdc->total_iter = AV_RL16(data+1);
> +                av_log(s, AV_LOG_DEBUG, "Loop count is %d\n", gdc->total_iter);
>   
>                   if (gdc->total_iter == 0)
>                       gdc->total_iter = -1;
diff mbox series

Patch

diff --git a/libavformat/gifdec.c b/libavformat/gifdec.c
index c20bde1781..1977f46e3a 100644
--- a/libavformat/gifdec.c
+++ b/libavformat/gifdec.c
@@ -247,6 +247,7 @@  static int gif_read_ext(AVFormatContext *s)
 
             if (sb_size == 3 && data[0] == 1) {
                 gdc->total_iter = AV_RL16(data+1);
+                av_log(s, AV_LOG_DEBUG, "Loop count is %d\n", gdc->total_iter);
 
                 if (gdc->total_iter == 0)
                     gdc->total_iter = -1;