Project

General

Profile

Bug #3331 » a.patch

Test patch - Jaroslav Kysela, 2015-11-24 20:23

View differences:

src/plumbing/transcoding.c
492 492
  icodec = as->aud_icodec;
493 493
  ocodec = as->aud_ocodec;
494 494

  
495
  tvhtrace("transcode", "audio in %ld", (long)pkt->pkt_dts);
496

  
495 497
  if (!avcodec_is_open(ictx)) {
496 498
    if (icodec->id == AV_CODEC_ID_AAC || icodec->id == AV_CODEC_ID_VORBIS) {
497 499
      if (pkt->pkt_meta) {
500
        tvhtrace("transcode", "audio meta!!!");
498 501
        ictx->extradata_size = pktbuf_len(pkt->pkt_meta);
499 502
        ictx->extradata = av_malloc(ictx->extradata_size);
500 503
        memcpy(ictx->extradata,
501 504
               pktbuf_ptr(pkt->pkt_meta), pktbuf_len(pkt->pkt_meta));
502 505
      } else {
503 506
        /* wait for metadata */
507
        tvhtrace("transcode", "audio meta wait");
504 508
        return;
505 509
      }
506 510
    }
(5-5/6)