avcodec/mpegvideo: Use av_memdup() for allocating thread_context
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 6 Jun 2015 19:28:54 +0000 (21:28 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 6 Jun 2015 20:47:50 +0000 (22:47 +0200)
commit46428ea332d8afa3f598d6a9d660716a4f90da6d
treec3a4ab9b6351b0a1536da5225de67bf6d207db27
parent7ddedd23625adeb2926b76df84987d658cc876c8
avcodec/mpegvideo: Use av_memdup() for allocating thread_context

Also check for allocation failure

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