Skip to content

Commit e36d21b

Browse files
committed
Add flac to codec_attr.
1 parent 26eb22d commit e36d21b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
======
33
* Fix segfault when flushing an encoder that
44
hasn't been started yet.
5+
* Added flac to codec_attr.
56

67
1.1.4 (2022-06-18)
78
=====

av/av_stubs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2413,6 +2413,8 @@ CAMLprim value ocaml_av_codec_attr(value _stream) {
24132413
} else {
24142414
snprintf(attr, sizeof(attr), "avc1");
24152415
}
2416+
} else if (stream->codecpar->codec_id == AV_CODEC_ID_FLAC) {
2417+
snprintf(attr, sizeof(attr), "fLaC");
24162418
} else if (stream->codecpar->codec_id == AV_CODEC_ID_HEVC) {
24172419
uint8_t *data = stream->codecpar->extradata;
24182420
int profile = FF_PROFILE_UNKNOWN;

0 commit comments

Comments
 (0)