fix potential crash due to av_free_packet()
try to fix crash when render thread is stopped after jni_player_dealloc()