roqvideoenc: set enc->avctx in roq_encode_init
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Mon, 9 Mar 2015 18:24:09 +0000 (19:24 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 9 Mar 2015 20:44:30 +0000 (21:44 +0100)
commitcf82c426fadf90105e1fb9d5ecd267cc3aa2b288
treef769a0d5d3363643d847796faad56535b9d8261c
parentcf714205bdd069d9c6604d3cfc33102aaed3c4f8
roqvideoenc: set enc->avctx in roq_encode_init

So far it is only set in roq_encode_frame, but it is used in
roq_encode_end to free the coded_frame. This currently segfaults if
roq_encode_frame is not called between roq_encode_init and
roq_encode_end.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/roqvideoenc.c