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>
Fri, 23 Sep 2011 21:39:51 +0000 (23:39 +0200)
libavcodec/tiffenc.c

index 647a589..d8df77c 100644 (file)
@@ -220,6 +220,7 @@ static int encode_frame(AVCodecContext * avctx, unsigned char *buf,
     uint8_t *yuv_line = NULL;
     int shift_h, shift_v;
 
     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;
     s->buf_start = buf;
     s->buf = &ptr;
     s->buf_size = buf_size;