aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean First <jeanfirst@gmail.com>2011-09-23 23:39:51 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-01 19:49:11 +0200
commit8c0a0f10df9bcb3494eb31cf42ab06371b68b195 (patch)
treeb211ec63e93445f1c2baff7b1cb7d1376dfbc82c
parent92566cf6eefe62d98d9e10e66c6e294e91d493b8 (diff)
downloadffmpeg-8c0a0f10df9bcb3494eb31cf42ab06371b68b195.tar.gz
tiffenc: initialize forgotten avctx.
(cherry picked from commit f7e797aa5c987c39b55666a2d41877ef2aec40bc) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/tiffenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c
index 4a99a38831..97e1dd38c4 100644
--- a/libavcodec/tiffenc.c
+++ b/libavcodec/tiffenc.c
@@ -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;