Skip to content

feat: add ProfileName to CodecParameters to get the full profile name. - #187

Merged
asticode merged 2 commits into
asticode:masterfrom
asix1337:profile-name
May 14, 2026
Merged

asticode merged 2 commits into
asticode:masterfrom
asix1337:profile-name

Conversation

@asix1337

Copy link
Copy Markdown
Contributor

Add "ProfileName()" to CodecParameters to get the full profile name. Provides human readable string of the codec.

Comment thread codec_parameters.go Outdated

// https://ffmpeg.org/doxygen/8.0/group__lavc__core.html#ga7f9d1f2fbf0978fc1ddc2fe196f29fa4
func (cp *CodecParameters) ProfileName() string {
name := C.avcodec_profile_name(cp.c.codec_id, cp.c.profile)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you simplify with return C.GoString(C.avcodec_profile_name(cp.c.codec_id, cp.c.profile))?

@asticode
asticode merged commit 350636b into asticode:master May 14, 2026
3 checks passed
@asticode

Copy link
Copy Markdown
Owner

Thanks for the PR ❤️

Let me know whether you need a tag 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants