tiffenc: initialize forgotten avctx.
authorJean First <jeanfirst@gmail.com>
Fri, 23 Sep 2011 21:39:51 +0000 (23:39 +0200)
committerJustin Ruggles <justin.ruggles@gmail.com>
Wed, 12 Oct 2011 22:20:18 +0000 (18:20 -0400)
libavcodec/tiffenc.c

index a141a47..d486b3f 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;