summaryrefslogtreecommitdiff
path: root/video.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-02-23 22:52:37 -0500
committerpommicket <pommicket@gmail.com>2025-02-25 15:16:08 -0500
commitb1218f3dbc6a9eb9cd32cc052db2043d6ceac307 (patch)
treed814ded721da7e4a362718187b4431c987ad0d30 /video.c
parenta475085ee119250344f709b14fe52cb540fc11a4 (diff)
welp we can't really nail down the codecs after all
it's a fucking pain. you'd expect it would be like, avformat supports containers A, B, and C, avcodec supports codecs X, Y, and Z, and maybe A only allows X, Y, etc. but in fact only a handful of specific combinations of [container format]+[audio codec]+[video codec] are supported.
Diffstat (limited to 'video.c')
-rw-r--r--video.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/video.c b/video.c
index 495c6e2..2ce9b29 100644
--- a/video.c
+++ b/video.c
@@ -95,7 +95,6 @@ bool video_start(VideoContext *ctx, const char *filename, int32_t width, int32_t
return true;
}
video_stop(ctx);
- // TODO: nail down codecs as H264 and AAC
int err = avformat_alloc_output_context2(&ctx->avf_context, NULL, NULL, filename);
if (!ctx->avf_context) {
fprintf(stderr, "error: avformat_alloc_output_context2: %s\n", av_err2str(err));