avcodec/mjpegenc: Use av_frame_clone() instead of av_frame_ref()
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 24 Jan 2014 02:24:55 +0000 (03:24 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 24 Jan 2014 02:24:55 +0000 (03:24 +0100)
commita26e9c1040afeecf9013da742b0dec7009445f2b
treed03f69ffa3f35836d86b6ac7a766a785d6806863
parent52d2bcc78632f868cc4045c8f1cd03533418f0b6
avcodec/mjpegenc: Use av_frame_clone() instead of av_frame_ref()

This avoids the need for double error checking
Fixes CID1163843

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mjpegenc.c