Replace deprecated functions.
Fix deprecated names.
Merge branch 'develop' into ffmpeg
Merge branch 'develop' into ffmpeg
Fix encoder for new API.
Take care of planar/planes sample.
Merge branch 'develop' into ffmpeg
Fix missing seek flag.
Fix dangling reference.
Merge branch 'ffmpeg' into develop