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

Ignore unknown codecs in hello_world #78

Closed FransM closed 3 years ago

FransM commented 3 years ago

When running hello_world on a transport stream it failed because that stream contained 4 elementary streams: one for video, one for audio, one for teletext and one for EPG data (program guide). For the latter no codec was found.

This change just continues if for a stream no codec is found. Actually for this sample it would suffice if there is just a video stream.