fixed minor waveform generation bug

This commit is contained in:
itsmattkc
2018-07-11 09:31:27 +01:00
parent 4f0850b10c
commit 94f02dfedd
2 changed files with 6 additions and 5 deletions
+5 -4
View File
@@ -60,12 +60,13 @@ void PreviewGenerator::run() {
int read_ret = av_read_frame(fmt_ctx, &packet);
if (read_ret < 0) {
end_of_file = true;
if (read_ret != AVERROR_EOF) qDebug() << "[ERROR] Failed to read packet for preview generation";
if (read_ret != AVERROR_EOF) qDebug() << "[ERROR] Failed to read packet for preview generation" << read_ret;
break;
} else if (codec_ctx[packet.stream_index] != NULL) {
}
if (codec_ctx[packet.stream_index] != NULL) {
int send_ret = avcodec_send_packet(codec_ctx[packet.stream_index], &packet);
if (send_ret < 0) {
qDebug() << "[ERROR] Failed to send packet for preview generation - aborting";
if (send_ret < 0 && send_ret != AVERROR(EAGAIN)) {
qDebug() << "[ERROR] Failed to send packet for preview generation - aborting" << send_ret;
end_of_file = true;
break;
}
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.6.2, 2018-07-10T13:36:23. -->
<!-- Written by QtCreator 4.6.2, 2018-07-11T02:03:42. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>