Revision c5efef7b libavformat/rdt.c

View differences:

libavformat/rdt.c
312 312
        pos = url_ftell(&pb);
313 313
        if (res < 0)
314 314
            return res;
315
        rdt->audio_pkt_cnt = res;
316
        if (rdt->audio_pkt_cnt > 0 &&
317
            st->codec->codec_id == CODEC_ID_AAC) {
315
        if (res > 0) {
316
            if (st->codec->codec_id == CODEC_ID_AAC) {
318 317
            memcpy (rdt->buffer, buf + pos, len - pos);
319 318
            rdt->rmctx->pb = av_alloc_put_byte (rdt->buffer, len - pos, 0,
320 319
                                                NULL, NULL, NULL, NULL);
320
            }
321
            goto get_cache;
321 322
        }
322 323
    } else {
324
get_cache:
323 325
        rdt->audio_pkt_cnt =
324 326
            ff_rm_retrieve_cache (rdt->rmctx, rdt->rmctx->pb,
325 327
                                  st, rdt->rmst[st->index], pkt);

Also available in: Unified diff