leandromoreira / ffmpeg-libav-tutorial

FFmpeg libav tutorial - learn how media works from basic to transmuxing, transcoding and more. Translations: πŸ‡ΊπŸ‡Έ πŸ‡¨πŸ‡³ πŸ‡°πŸ‡· πŸ‡ͺπŸ‡Έ πŸ‡»πŸ‡³ πŸ‡§πŸ‡·
https://github.com/leandromoreira/ffmpeg-libav-tutorial
BSD 3-Clause "New" or "Revised" License
9.82k stars 941 forks source link

Fix unsupported channel layout crash. #39

Closed Shachlan closed 5 years ago

Shachlan commented 5 years ago

When running, this error popped: [aac @ 0x7ff0e089c800] Unsupported channel layout "0 channels"

This fix ensures that channel layout will be set correctly.

leandromoreira commented 5 years ago

Nice catch :)