Browse code

ffmpeg: replace "flush Media" with "flush_media" in benchmark_all output

Simplify parsing and consistency.

Stefano Sabatini authored on 2016/01/27 20:46:36
Showing 1 changed files
... ...
@@ -1711,11 +1711,11 @@ static void flush_encoders(void)
1711 1711
             switch (enc->codec_type) {
1712 1712
             case AVMEDIA_TYPE_AUDIO:
1713 1713
                 encode = avcodec_encode_audio2;
1714
-                desc   = "Audio";
1714
+                desc   = "audio";
1715 1715
                 break;
1716 1716
             case AVMEDIA_TYPE_VIDEO:
1717 1717
                 encode = avcodec_encode_video2;
1718
-                desc   = "Video";
1718
+                desc   = "video";
1719 1719
                 break;
1720 1720
             default:
1721 1721
                 stop_encoding = 1;
... ...
@@ -1731,7 +1731,7 @@ static void flush_encoders(void)
1731 1731
 
1732 1732
                 update_benchmark(NULL);
1733 1733
                 ret = encode(enc, &pkt, NULL, &got_packet);
1734
-                update_benchmark("flush %s %d.%d", desc, ost->file_index, ost->index);
1734
+                update_benchmark("flush_%s %d.%d", desc, ost->file_index, ost->index);
1735 1735
                 if (ret < 0) {
1736 1736
                     av_log(NULL, AV_LOG_FATAL, "%s encoding failed: %s\n",
1737 1737
                            desc,