summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-27 20:34:42 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-27 20:34:42 +0200
commita5f409bcc09176ad9443697d95da6a1edf3944aa (patch)
tree3fe98dafa3933f380be99cb5ef5428b456acd9f3
parenta50b00822784f6b098eb634132ad75394f1d26c0 (diff)
parent9a5e4fbec870c7d466b7a0aec92c70778efc96b5 (diff)
Merge commit '9a5e4fbec870c7d466b7a0aec92c70778efc96b5'
* commit '9a5e4fbec870c7d466b7a0aec92c70778efc96b5': avconv: do not stop processing the input packet on decoding error Conflicts: ffmpeg.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--ffmpeg.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 3cb1f6207f..aac03bbf37 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2268,8 +2268,13 @@ static int process_input_packet(InputStream *ist, const AVPacket *pkt)
return -1;
}
- if (ret < 0 && !(!pkt && ist->decoding_needed))
- return ret;
+ if (ret < 0) {
+ av_log(NULL, AV_LOG_ERROR, "Error while decoding stream #%d:%d: %s\n",
+ ist->file_index, ist->st->index, av_err2str(ret));
+ if (exit_on_error)
+ exit_program(1);
+ break;
+ }
avpkt.dts=
avpkt.pts= AV_NOPTS_VALUE;
@@ -3772,13 +3777,7 @@ static int process_input(int file_index)
sub2video_heartbeat(ist, pkt.pts);
- ret = process_input_packet(ist, &pkt);
- if (ret < 0) {
- av_log(NULL, AV_LOG_ERROR, "Error while decoding stream #%d:%d: %s\n",
- ist->file_index, ist->st->index, av_err2str(ret));
- if (exit_on_error)
- exit_program(1);
- }
+ process_input_packet(ist, &pkt);
discard_packet:
av_free_packet(&pkt);