Commit d9a416fa authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'c487972e'

* commit 'c487972e':
  ismindex: recover from completely empty streams
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 4bc4f6f1 c487972e
...@@ -328,6 +328,12 @@ static int handle_file(struct Tracks *tracks, const char *file, int split, ...@@ -328,6 +328,12 @@ static int handle_file(struct Tracks *tracks, const char *file, int split,
for (i = 0; i < ctx->nb_streams; i++) { for (i = 0; i < ctx->nb_streams; i++) {
struct Track **temp; struct Track **temp;
AVStream *st = ctx->streams[i]; 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)); track = av_mallocz(sizeof(*track));
if (!track) { if (!track) {
err = AVERROR(ENOMEM); err = AVERROR(ENOMEM);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment