Skip to content

Commit

Permalink
Update crt_core.c
Browse files Browse the repository at this point in the history
  • Loading branch information
LMP88959 authored May 13, 2023
1 parent 8196e59 commit d3084a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crt_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,12 +320,12 @@ crt_demodulate(struct CRT *v, int noise)
huecs >>= 11;

rn = v->rn;
#if (CRT_SYSTEM == CRT_SYSTEM_NTSCVHS)
#if ((CRT_SYSTEM == CRT_SYSTEM_NTSCVHS) && CRT_VHS_NOISE)
line = ((rand() % 8) - 4) + 14;
#endif
for (i = 0; i < CRT_INPUT_SIZE; i++) {
int nn = noise;
#if (CRT_SYSTEM == CRT_SYSTEM_NTSCVHS)
#if ((CRT_SYSTEM == CRT_SYSTEM_NTSCVHS) && CRT_VHS_NOISE)
rn = rand();
if (i > (CRT_INPUT_SIZE - CRT_HRES * (16 + ((rand() % 20) - 10))) &&
i < (CRT_INPUT_SIZE - CRT_HRES * (5 + ((rand() % 8) - 4)))) {
Expand Down

0 comments on commit d3084a7

Please sign in to comment.