]> git.sesse.net Git - nageru/commitdiff
Drop writing the dump.h264 file; our muxing is okay enough by now.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 5 Oct 2015 23:05:25 +0000 (01:05 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 5 Oct 2015 23:05:25 +0000 (01:05 +0200)
h264encode.cpp

index db0ba93588fc72f9061e491c694910bc0f4f3180..6eb11d1ef1204b0efc7d03b67bde09a3cb603733 100644 (file)
@@ -103,7 +103,6 @@ static  int h264_maxref = (1<<16|1);
 static  int h264_entropy_mode = 1; /* cabac */
 
 static  char *coded_fn = NULL;
-static  FILE *coded_fp = NULL;
 
 static  int frame_width = 176;
 static  int frame_height = 144;
@@ -796,12 +795,6 @@ static int process_cmdline(int argc, char *argv[])
             coded_fn = strdup("./test.264");
     }
     
-    /* store coded data into a file */
-    coded_fp = fopen(coded_fn, "w+");
-    if (coded_fp == NULL) {
-        printf("Open file %s failed, exit\n", coded_fn);
-        exit(1);
-    }
 
     frame_width_mbaligned = (frame_width + 15) & (~15);
     frame_height_mbaligned = (frame_height + 15) & (~15);
@@ -1588,8 +1581,6 @@ int H264Encoder::save_codeddata(unsigned long long display_order, unsigned long
     CHECK_VASTATUS(va_status, "vaMapBuffer");
     while (buf_list != NULL) {
         data.append(reinterpret_cast<const char *>(buf_list->buf), buf_list->size);
-        if (coded_fp != nullptr)
-            coded_size += fwrite(buf_list->buf, 1, buf_list->size, coded_fp);
         buf_list = (VACodedBufferSegment *) buf_list->next;
 
         frame_size += coded_size;
@@ -1757,9 +1748,6 @@ H264Encoder::H264Encoder(QSurface *surface, int width, int height, const char *o
                exit(1);
        }
 
-       coded_fp = fopen("dump.h264", "wb");
-       assert(coded_fp != NULL);
-
        frame_width = width;
        frame_height = height;
        frame_width_mbaligned = (frame_width + 15) & (~15);