Skip to content

Commit

Permalink
src/motiondetect: Use ASCII mode for compability with FFmpeg
Browse files Browse the repository at this point in the history
Currently there isn't a way to set either ascii or binary format in FFmpeg
and that causes an issue with FFmpeg on Windows it seems. It will be better
to wait until the flag can be exposed through the API or wait until an ABI
update to set the binary mode as the default

georgmartius#104

Signed-off-by: Christopher Degawa <[email protected]>
  • Loading branch information
1480c1 committed Jun 6, 2021
1 parent f9166e9 commit 96e15ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/motiondetect.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ int vsMotionDetectInit(VSMotionDetect* md, const VSMotionDetectConfig* conf, con
md->frameNum = 0;

if(md->serializationMode != ASCII_SERIALIZATION_MODE && md->serializationMode != BINARY_SERIALIZATION_MODE) {
md->serializationMode = BINARY_SERIALIZATION_MODE;
md->serializationMode = ASCII_SERIALIZATION_MODE;
}

// TODO: get rid of shakiness parameter in the long run
Expand Down

0 comments on commit 96e15ee

Please sign in to comment.