Updated transcoding example encoder codec id

This commit is contained in:
Quentin Renard
2024-11-17 15:27:57 +01:00
parent 592d8eacb7
commit 3f2badc117

View File

@@ -265,7 +265,7 @@ func openOutputFile() (err error) {
} }
// Get codec id // Get codec id
codecID := astiav.CodecIDMpeg4 codecID := astiav.CodecIDH264
if s.decCodecContext.MediaType() == astiav.MediaTypeAudio { if s.decCodecContext.MediaType() == astiav.MediaTypeAudio {
codecID = astiav.CodecIDAac codecID = astiav.CodecIDAac
} }