Skip to content

Commit

Permalink
Add flac to codec_attr.
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Aug 18, 2022
1 parent 26eb22d commit e36d21b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
======
* Fix segfault when flushing an encoder that
hasn't been started yet.
* Added flac to codec_attr.

1.1.4 (2022-06-18)
=====
Expand Down
2 changes: 2 additions & 0 deletions av/av_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2413,6 +2413,8 @@ CAMLprim value ocaml_av_codec_attr(value _stream) {
} else {
snprintf(attr, sizeof(attr), "avc1");
}
} else if (stream->codecpar->codec_id == AV_CODEC_ID_FLAC) {
snprintf(attr, sizeof(attr), "fLaC");
} else if (stream->codecpar->codec_id == AV_CODEC_ID_HEVC) {
uint8_t *data = stream->codecpar->extradata;
int profile = FF_PROFILE_UNKNOWN;
Expand Down

0 comments on commit e36d21b

Please sign in to comment.