Skip to content
Snippets Groups Projects
Commit dbfd1a0e authored by David's avatar David
Browse files

fix for decoding short external clips

parent 1d47cd3a
No related branches found
No related tags found
No related merge requests found
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
#define EXPORT_DECODES_PPM 0 #define EXPORT_DECODES_PPM 0
#ifdef _DEBUG #ifdef _DEBUG
#define MAX_DEC_FRAMES 1 #define MAX_DEC_FRAMES 5
#define MAX_ENC_FRAMES 50 #define MAX_ENC_FRAMES 50
#define MAX_QUAL_FRAMES 1 #define MAX_QUAL_FRAMES 1
#define POOL_THREADS 4 #define POOL_THREADS 4
...@@ -512,7 +512,7 @@ CFHD_Error DecodeMOVIE(char *filename, char *ext) ...@@ -512,7 +512,7 @@ CFHD_Error DecodeMOVIE(char *filename, char *ext)
printf("."); printf(".");
dec_tot_us += (double)dec_us; dec_tot_us += (double)dec_us;
if (frame < (int)numframes) if (frame < (int)numframes-1)
frame++; frame++;
else else
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment