From 3a66db200df7f348d4c43ee83c11b7a0226a77cc Mon Sep 17 00:00:00 2001 From: Oleg Kisselef Date: Mon, 6 Apr 2015 22:22:00 +0600 Subject: [PATCH] typo in mp4 detection algorithm fixed: 'feee'->'free' added 'wide' box to mp4 detection algorithm --- src/lib_ccx/stream_functions.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib_ccx/stream_functions.c b/src/lib_ccx/stream_functions.c index d602672f..cb6117d2 100644 --- a/src/lib_ccx/stream_functions.c +++ b/src/lib_ccx/stream_functions.c @@ -141,7 +141,7 @@ void detect_stream_type (struct lib_ccx_ctx *ctx) (ctx->startbytes[i]=='m' && ctx->startbytes[i+1]=='d' && ctx->startbytes[i+2]=='a' && ctx->startbytes[i+3]=='t') || - (ctx->startbytes[i]=='f' && ctx->startbytes[i+1]=='e' && + (ctx->startbytes[i]=='f' && ctx->startbytes[i+1]=='r' && ctx->startbytes[i+2]=='e' && ctx->startbytes[i+3]=='e') || (ctx->startbytes[i]=='s' && ctx->startbytes[i+1]=='k' && @@ -155,6 +155,9 @@ void detect_stream_type (struct lib_ccx_ctx *ctx) || (ctx->startbytes[i]=='v' && ctx->startbytes[i+1]=='o' && ctx->startbytes[i+2]=='i' && ctx->startbytes[i+3]=='d') + || + (ctx->startbytes[i]=='w' && ctx->startbytes[i+1]=='i' && + ctx->startbytes[i+2]=='d' && ctx->startbytes[i+3]=='e') ) { ctx->stream_mode=CCX_SM_MP4;