Re: [FFmpeg-devel] [PATCH 1/3] mjpegenc_common: check for codec ID before using avctx->priv_data

2017-04-08 Thread Rostislav Pehlivanov
On 5 April 2017 at 20:20, Michael Niedermayer wrote: > On Mon, Apr 03, 2017 at 09:13:28PM +0100, Rostislav Pehlivanov wrote: > > When coding lossless jpeg the priv context will be pointing to > LJpegEncContext > > rather than MpegEncContext, which the function expects. > > > > Signed-off-by: Rost

Re: [FFmpeg-devel] [PATCH 1/3] mjpegenc_common: check for codec ID before using avctx->priv_data

2017-04-05 Thread Michael Niedermayer
On Mon, Apr 03, 2017 at 09:13:28PM +0100, Rostislav Pehlivanov wrote: > When coding lossless jpeg the priv context will be pointing to LJpegEncContext > rather than MpegEncContext, which the function expects. > > Signed-off-by: Rostislav Pehlivanov > --- > libavcodec/mjpegenc_common.c | 10 +

[FFmpeg-devel] [PATCH 1/3] mjpegenc_common: check for codec ID before using avctx->priv_data

2017-04-03 Thread Rostislav Pehlivanov
When coding lossless jpeg the priv context will be pointing to LJpegEncContext rather than MpegEncContext, which the function expects. Signed-off-by: Rostislav Pehlivanov --- libavcodec/mjpegenc_common.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libavcodec/mj