tiffenc: initialize forgotten avctx.
authorJean First <jeanfirst@gmail.com>
Fri, 23 Sep 2011 21:39:51 +0000 (23:39 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 1 Oct 2011 17:49:11 +0000 (19:49 +0200)
(cherry picked from commit f7e797aa5c987c39b55666a2d41877ef2aec40bc)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/tiffenc.c

index 4a99a38..97e1dd3 100644 (file)
@@ -217,6 +217,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;