fixed max Channels

Signed-off-by: Jack <jack.wgm@gmail.com>
missing init AVFrame

Signed-off-by: Jack <jack.wgm@gmail.com>