diff mbox

[FFmpeg-devel] avcodec/h264dec: Call ff_print_debug_info2() in flush codepath

Message ID 20170112111137.3823-1-michael@niedermayer.cc
State Superseded, archived
Delegated to: Clément Bœsch
Headers show

Commit Message

Michael Niedermayer Jan. 12, 2017, 11:11 a.m. UTC
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavcodec/h264dec.c | 9 +++++++++
 1 file changed, 9 insertions(+)

Comments

Clément Bœsch Jan. 13, 2017, 11:55 a.m. UTC | #1
On Thu, Jan 12, 2017 at 12:11:37PM +0100, Michael Niedermayer wrote:
> Found-by: ubitux
> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> ---
>  libavcodec/h264dec.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c
> index ed0b7246b7..dabcaf698a 100644
> --- a/libavcodec/h264dec.c
> +++ b/libavcodec/h264dec.c
> @@ -1096,6 +1096,15 @@ static int h264_decode_frame(AVCodecContext *avctx, void *data,
>              if (ret < 0)
>                  return ret;
>              *got_frame = 1;
> +            if (CONFIG_MPEGVIDEO) {
> +                ff_print_debug_info2(h->avctx, pict, NULL,
> +                                    out->mb_type,
> +                                    out->qscale_table,
> +                                    out->motion_val,
> +                                    NULL,
> +                                    h->mb_width, h->mb_height, h->mb_stride, 1);
> +            }
> +

superseded by "[PATCH 3/3] lavc/h264dec: reconstruct and debug flush frames
as well"
Michael Niedermayer Jan. 13, 2017, 4:31 p.m. UTC | #2
On Fri, Jan 13, 2017 at 12:55:33PM +0100, Clément Bœsch wrote:
> On Thu, Jan 12, 2017 at 12:11:37PM +0100, Michael Niedermayer wrote:
> > Found-by: ubitux
> > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> > ---
> >  libavcodec/h264dec.c | 9 +++++++++
> >  1 file changed, 9 insertions(+)
> > 
> > diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c
> > index ed0b7246b7..dabcaf698a 100644
> > --- a/libavcodec/h264dec.c
> > +++ b/libavcodec/h264dec.c
> > @@ -1096,6 +1096,15 @@ static int h264_decode_frame(AVCodecContext *avctx, void *data,
> >              if (ret < 0)
> >                  return ret;
> >              *got_frame = 1;
> > +            if (CONFIG_MPEGVIDEO) {
> > +                ff_print_debug_info2(h->avctx, pict, NULL,
> > +                                    out->mb_type,
> > +                                    out->qscale_table,
> > +                                    out->motion_val,
> > +                                    NULL,
> > +                                    h->mb_width, h->mb_height, h->mb_stride, 1);
> > +            }
> > +
> 
> superseded by "[PATCH 3/3] lavc/h264dec: reconstruct and debug flush frames
> as well"

please either update patchwork or send a pull-req/patch to

https://github.com/michaelni/patchwork-update-bot
so it auto updates

[...]
diff mbox

Patch

diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c
index ed0b7246b7..dabcaf698a 100644
--- a/libavcodec/h264dec.c
+++ b/libavcodec/h264dec.c
@@ -1096,6 +1096,15 @@  static int h264_decode_frame(AVCodecContext *avctx, void *data,
             if (ret < 0)
                 return ret;
             *got_frame = 1;
+            if (CONFIG_MPEGVIDEO) {
+                ff_print_debug_info2(h->avctx, pict, NULL,
+                                    out->mb_type,
+                                    out->qscale_table,
+                                    out->motion_val,
+                                    NULL,
+                                    h->mb_width, h->mb_height, h->mb_stride, 1);
+            }
+
         }
 
         return buf_index;