[FFmpeg-devel] [PATCH] examples/decoding_encoding: Use the AVFrame width/height for processing images after decoding

Michael Niedermayer michaelni at gmx.at
Sat Jun 13 02:21:15 CEST 2015


On Thu, Jun 11, 2015 at 09:45:28AM +0200, Stefano Sabatini wrote:
> On date Wednesday 2015-06-10 22:21:23 +0200, Michael Niedermayer encoded:
> > This is what FFmpeg / FFplay do and it is more robust
> > 
> > Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> > ---
> >  doc/examples/decoding_encoding.c |    2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/doc/examples/decoding_encoding.c b/doc/examples/decoding_encoding.c
> > index 80da664..f6643f6 100644
> > --- a/doc/examples/decoding_encoding.c
> > +++ b/doc/examples/decoding_encoding.c
> > @@ -521,7 +521,7 @@ static int decode_write_frame(const char *outfilename, AVCodecContext *avctx,
> >          /* the picture is allocated by the decoder, no need to free it */
> >          snprintf(buf, sizeof(buf), outfilename, *frame_count);
> >          pgm_save(frame->data[0], frame->linesize[0],
> > -                 avctx->width, avctx->height, buf);
> > +                 frame->width, frame->height, buf);
> >          (*frame_count)++;
> >      }
> >      if (pkt->data) {
> > -- 
> > 1.7.9.5
> 
> LGTM, thanks.

applied

thanks

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

The educated differ from the uneducated as much as the living from the
dead. -- Aristotle 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150613/178b4fe4/attachment.asc>


More information about the ffmpeg-devel mailing list