[FFmpeg-devel] [PATCH] vp9: always consume the full input packet

Michael Niedermayer michaelni at gmx.at
Tue Oct 22 19:44:36 CEST 2013


On Tue, Oct 22, 2013 at 12:05:04PM -0400, Ronald S. Bultje wrote:
> Hi,
> 
> On Tue, Oct 22, 2013 at 11:57 AM, Hendrik Leppkes <h.leppkes at gmail.com>wrote:
> 
> > ---
> >  libavcodec/vp9.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
> > index 1d06460..cb14ec4 100644
> > --- a/libavcodec/vp9.c
> > +++ b/libavcodec/vp9.c
> > @@ -3495,14 +3495,14 @@ static int vp9_decode_packet(AVCodecContext
> > *avctx, void *out_pic,
> >                  case_n(3, AV_RL24(idx));
> >                  case_n(4, AV_RL32(idx));
> >              }
> > -            return size;
> > +            return avpkt->size;
> >          }
> >      }
> >      // if we get here, there was no valid superframe index, i.e. this is
> > just
> >      // one whole single frame - decode it as such from the complete input
> > buf
> >      if ((res = vp9_decode_frame(avctx, out_pic, got_frame, data, size)) <
> > 0)
> >          return res;
> > -    return size;
> > +    return avpkt->size;
> >  }
> >
> 
> OK.

applied

thanks

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

What does censorship reveal? It reveals fear. -- Julian Assange
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131022/912e4f80/attachment.asc>


More information about the ffmpeg-devel mailing list