On Sat, 18 Aug 2012 12:10:21 -0700, Alex Converse <[email protected]> wrote: > On Fri, Aug 17, 2012 at 11:50 PM, Anton Khirnov <[email protected]> wrote: > > > > Module: libav > > Branch: master > > Commit: 7f9aaa499b8a5ce066cc17aac6ebbdf0111980b6 > > > > Author: Anton Khirnov <[email protected]> > > Committer: Anton Khirnov <[email protected]> > > Date: Wed Aug 15 09:35:18 2012 +0200 > > > > mpegvideo_enc: don't use deprecated avcodec_encode_video(). > > > > --- > > > > libavcodec/mpegvideo_enc.c | 31 +++++++++++++++++++++++-------- > > 1 files changed, 23 insertions(+), 8 deletions(-) > > > > diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c > > index d527ace..65f2281 100644 > > --- a/libavcodec/mpegvideo_enc.c > > +++ b/libavcodec/mpegvideo_enc.c > > @@ -1068,6 +1068,22 @@ static int skip_check(MpegEncContext *s, Picture > > *p, Picture *ref) > > return 0; > > } > > > > +static int encode_frame(AVCodecContext *c, AVFrame *frame) > > +{ > > + AVPacket pkt = { 0 }; > > + int ret, got_output; > > + > > + av_init_packet(&pkt); > > + av_init_packet(&pkt); > > Why the double init? >
I wonder how that got there... Anyway, fix sent. -- Anton Khirnov _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
