[FFmpeg-cvslog] tiffenc: initialize forgotten avctx.

Jean First git at videolan.org
Fri Sep 23 23:49:24 CEST 2011


ffmpeg | branch: master | Jean First <jeanfirst at gmail.com> | Fri Sep 23 23:39:51 2011 +0200| [f7e797aa5c987c39b55666a2d41877ef2aec40bc] | committer: Michael Niedermayer

tiffenc: initialize forgotten avctx.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f7e797aa5c987c39b55666a2d41877ef2aec40bc
---

 libavcodec/tiffenc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c
index 647a589..d8df77c 100644
--- a/libavcodec/tiffenc.c
+++ b/libavcodec/tiffenc.c
@@ -220,6 +220,7 @@ static int encode_frame(AVCodecContext * avctx, unsigned char *buf,
     uint8_t *yuv_line = NULL;
     int shift_h, shift_v;
 
+    s->avctx = avctx;
     s->buf_start = buf;
     s->buf = &ptr;
     s->buf_size = buf_size;



More information about the ffmpeg-cvslog mailing list