Skip to content
Snippets Groups Projects
Commit 14d3e7ad authored by Diego Biurrun's avatar Diego Biurrun
Browse files

Remove some silly disabled code.

parent 56b6a430
No related branches found
No related tags found
No related merge requests found
...@@ -320,7 +320,6 @@ static int read_huffman_tables(HYuvContext *s, const uint8_t *src, int length) ...@@ -320,7 +320,6 @@ static int read_huffman_tables(HYuvContext *s, const uint8_t *src, int length)
static int read_old_huffman_tables(HYuvContext *s) static int read_old_huffman_tables(HYuvContext *s)
{ {
#if 1
GetBitContext gb; GetBitContext gb;
int i; int i;
...@@ -353,10 +352,6 @@ static int read_old_huffman_tables(HYuvContext *s) ...@@ -353,10 +352,6 @@ static int read_old_huffman_tables(HYuvContext *s)
generate_joint_tables(s); generate_joint_tables(s);
return 0; return 0;
#else
av_log(s->avctx, AV_LOG_DEBUG, "v1 huffyuv is not supported \n");
return -1;
#endif
} }
static av_cold void alloc_temp(HYuvContext *s) static av_cold void alloc_temp(HYuvContext *s)
......
...@@ -90,15 +90,8 @@ int main(void) ...@@ -90,15 +90,8 @@ int main(void)
#define SAMPLES 1000 #define SAMPLES 1000
double ideal[SAMPLES]; double ideal[SAMPLES];
double samples[SAMPLES]; double samples[SAMPLES];
#if 1
for (n0 = 0; n0 < 40; n0 = 2 * n0 + 1) { for (n0 = 0; n0 < 40; n0 = 2 * n0 + 1) {
for (n1 = 0; n1 < 10; n1 = 2 * n1 + 1) { for (n1 = 0; n1 < 10; n1 = 2 * n1 + 1) {
#else
{
{
n0 = 7;
n1 = 1;
#endif
double best_error = 1000000000; double best_error = 1000000000;
double bestpar0 = 1; double bestpar0 = 1;
double bestpar1 = 0.001; double bestpar1 = 0.001;
......
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