mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-04 05:44:53 +00:00
[PR #1664] [CLOSED] [FEAT] Migrate detect_stream_type() from C to Rust #2367
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1664
Author: @vatsalkeshav
Created: 2/15/2025
Status: ❌ Closed
Base:
master← Head:crabbe📝 Commits (5)
8dcc9b2prepoc dir u/d in freetypee278abbupdated Byte for macos as chard003d4fstream detection from c to rustbe601cbimproving 1b93516dimproving 2📊 Changes
5 files changed (+283 additions, -2 deletions)
View changed files
📝
src/lib_ccx/stream_functions.c(+7 -0)➕
src/rust/lib_ccxr/src/util/stream_detector.rs(+262 -0)📝
src/rust/src/libccxr_exports/mod.rs(+7 -0)📝
src/thirdparty/freetype/gzip/ftzconf.h(+6 -1)📝
src/thirdparty/freetype/gzip/zutil.h(+1 -1)📄 Description
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
This PR tries to migrate the C function
detect_stream_type()(src/lib_ccx/stream_functions.c) that handles the detection of video container to its pure Rust equivalentdetect_stream_type(ctx: &mut CcxDemuxer)(src/rust/lib_ccxr/src/util/stream_detector.rs).This migration follows Rust_migration_guide
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.