~medibuntu-maintainers/mplayer/medibuntu.precise

« back to all changes in this revision

Viewing changes to ffmpeg/libavformat/rdt.c

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2012-01-12 22:23:28 UTC
  • mfrom: (0.4.7 sid)
  • mto: This revision was merged to the branch mainline in revision 76.
  • Revision ID: package-import@ubuntu.com-20120112222328-8jqdyodym3p84ygu
Tags: 2:1.0~rc4.dfsg1+svn34540-1
* New upstream snapshot
* upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
459
459
{
460
460
    AVStream *st;
461
461
 
462
 
    if (!(st = av_new_stream(s, orig_st->id)))
 
462
    if (!(st = avformat_new_stream(s, NULL)))
463
463
        return NULL;
 
464
    st->id = orig_st->id;
464
465
    st->codec->codec_type = orig_st->codec->codec_type;
465
466
    st->first_dts         = orig_st->first_dts;
466
467
 
483
484
     * is set and once for if it isn't. We only read the first because we
484
485
     * don't care much (that's what the "odd" variable is for).
485
486
     * Each rule contains a set of one or more statements, optionally
486
 
     * preceeded by a single condition. If there's a condition, the rule
 
487
     * preceded by a single condition. If there's a condition, the rule
487
488
     * starts with a '#'. Multiple conditions are merged between brackets,
488
489
     * so there are never multiple conditions spread out over separate
489
490
     * statements. Generally, these conditions are bitrate limits (min/max)
523
524
{
524
525
    PayloadContext *rdt = av_mallocz(sizeof(PayloadContext));
525
526
 
526
 
    avformat_open_input(&rdt->rmctx, "", &ff_rdt_demuxer, NULL);
 
527
    int ret = avformat_open_input(&rdt->rmctx, "", &ff_rdt_demuxer, NULL);
 
528
    if (ret < 0) {
 
529
        av_free(rdt);
 
530
        return NULL;
 
531
    }
527
532
 
528
533
    return rdt;
529
534
}
539
544
            av_freep(&rdt->rmst[i]);
540
545
        }
541
546
    if (rdt->rmctx)
542
 
        av_close_input_file(rdt->rmctx);
 
547
        avformat_close_input(&rdt->rmctx);
543
548
    av_freep(&rdt->mlti_data);
544
549
    av_freep(&rdt->rmst);
545
550
    av_free(rdt);