aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-03 15:04:30 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-09-03 15:04:34 +0200
commitd9a416fa1a7b1ad9ed1ec9747f17134e947c1587 (patch)
tree286ff08765faec2ac451f2bdffe07dfd5a91aee9
parent4bc4f6f17079f6861da9a5df336c18e66cdc3848 (diff)
parentc487972ed0e1eaebdbe4a13cdd191e119be0b19c (diff)
downloadffmpeg-d9a416fa1a7b1ad9ed1ec9747f17134e947c1587.tar.gz
Merge commit 'c487972ed0e1eaebdbe4a13cdd191e119be0b19c'
* commit 'c487972ed0e1eaebdbe4a13cdd191e119be0b19c': ismindex: recover from completely empty streams Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--tools/ismindex.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/ismindex.c b/tools/ismindex.c
index 80612306d8..4dbb2ef00a 100644
--- a/tools/ismindex.c
+++ b/tools/ismindex.c
@@ -328,6 +328,12 @@ static int handle_file(struct Tracks *tracks, const char *file, int split,
for (i = 0; i < ctx->nb_streams; i++) {
struct Track **temp;
AVStream *st = ctx->streams[i];
+
+ if (st->codec->bit_rate == 0) {
+ fprintf(stderr, "Skipping track %d in %s as it has zero bitrate\n", i, file);
+ continue;
+ }
+
track = av_mallocz(sizeof(*track));
if (!track) {
err = AVERROR(ENOMEM);