From 6094c907b26e21f13373bae6bf3306dbae40af3c Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Wed, 26 Aug 2026 15:08:16 -0400 Subject: Update deps, small changes and cleanup Signed-off-by: Andrew Opalach --- src/codec/codec.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/codec/codec.h') diff --git a/src/codec/codec.h b/src/codec/codec.h index f1c979b..bb54b3b 100644 --- a/src/codec/codec.h +++ b/src/codec/codec.h @@ -210,7 +210,7 @@ struct camu_demuxer { bool (*seek)(struct camu_demuxer *, u64, bool); void (*free)(struct camu_demuxer **); array(struct camu_codec_stream) streams; - // @TODO: .mkv can probably have more than 64 streams. + // @TODO: .mkv (at least) can probably have more than 64 streams. u64 subscribed; }; @@ -440,7 +440,7 @@ static inline s32 camu_guess_format(str *short_name, str *ext, str *mime_type) char *c_short_name = short_name ? al_str_to_c_str(short_name) : NULL; char *c_ext = ext ? al_str_to_c_str(ext) : NULL; char *c_mime_type = mime_type ? al_str_to_c_str(mime_type) : NULL; - // Empty short_name to attempt avoiding image2 probing. + // Empty short_name to avoid image2 probing. const AVOutputFormat *fmt = av_guess_format(c_short_name ? c_short_name : "", c_ext, c_mime_type); if (c_short_name) al_free(c_short_name); if (c_ext) al_free(c_ext); @@ -448,5 +448,5 @@ static inline s32 camu_guess_format(str *short_name, str *ext, str *mime_type) // In FFmpeg AV_CODEC_ID_MJPEG also means "image2". if (fmt) return (fmt->audio_codec != AV_CODEC_ID_NONE) ? fmt->audio_codec : fmt->video_codec; #endif - return -1; + return CAMU_CODEC_FALLBACK; } -- cgit v1.2.3-101-g0448