fix bug: invalid data of audio file maybe used to get the max width and height of input video
正在显示
1 个修改的文件
包含
6 行增加
和
1 行删除
| @@ -685,7 +685,8 @@ void add_media_infos() | @@ -685,7 +685,8 @@ void add_media_infos() | ||
| 685 | printf("\nsorted file info:"); | 685 | printf("\nsorted file info:"); |
| 686 | it = sorted_media_with_end.begin(); | 686 | it = sorted_media_with_end.begin(); |
| 687 | for (; it != sorted_media_with_end.end();it++){ | 687 | for (; it != sorted_media_with_end.end();it++){ |
| 688 | - printf("\n%2d %8.3f %s %4d %4d %3d %s", it->sorted_index, it->type_time, it->name.c_str(), it->width, it->height, it->rotate, it->t_type == tt_start ? "start" : "end"); | 688 | + if (it->m_type == mt_video) { |
| 689 | + printf("\n%2d %8.3f %s %s %4d %4d %3d", it->sorted_index, it->type_time, it->name.c_str(), it->t_type == tt_start ? "start" : "end", it->width, it->height, it->rotate); | ||
| 689 | if (it->width > it->height) { | 690 | if (it->width > it->height) { |
| 690 | if (width < it->width) { | 691 | if (width < it->width) { |
| 691 | width = it->width; | 692 | width = it->width; |
| @@ -703,6 +704,10 @@ void add_media_infos() | @@ -703,6 +704,10 @@ void add_media_infos() | ||
| 703 | } | 704 | } |
| 704 | } | 705 | } |
| 705 | } | 706 | } |
| 707 | + else { | ||
| 708 | + printf("\n%2d %8.3f %s %s", it->sorted_index, it->type_time, it->name.c_str(), it->t_type == tt_start ? "start" : "end"); | ||
| 709 | + } | ||
| 710 | + } | ||
| 706 | printf("\n-------------------------\n"); | 711 | printf("\n-------------------------\n"); |
| 707 | 712 | ||
| 708 | it = audio_type_files.begin(); | 713 | it = audio_type_files.begin(); |
-
请 注册 或 登录 后发表评论