Revision 5f85d49b libavformat/applehttp.c

View differences:

libavformat/applehttp.c
505 505
                goto fail;
506 506
            }
507 507
            avcodec_copy_context(st->codec, v->ctx->streams[j]->codec);
508
            av_metadata_set2(&st->metadata, "variant_bitrate", bitrate_str, 0);
508
            if (v->bandwidth)
509
                av_metadata_set2(&st->metadata, "variant_bitrate", bitrate_str,
510
                                 0);
509 511
        }
510 512
        stream_offset += v->ctx->nb_streams;
511 513
    }

Also available in: Unified diff