avaudenc: Set all required fields in the AVFrame
authorSebastian Dröge <sebastian@centricular.com>
Thu, 28 Apr 2016 15:43:37 +0000 (18:43 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 28 Apr 2016 15:43:37 +0000 (18:43 +0300)
commit151cd32a10ee3636fd65a6e1f361849c06ecb732
tree8277809be40ced2773874c86fcb723ea52964835
parent2027188c34698842c38b38f87f5560b08d7861dd
avaudenc: Set all required fields in the AVFrame

Various functions in libavcodec need them, like the format, sample rate, etc.
and just having them in the context is not enough.

This fixes draining for codecs like MP2 that require a fixed frame size and
require libav to pad the last frame if required.
ext/libav/gstavaudenc.c