Revision 01f4895c libavformat/asf-enc.c

View differences:

libavformat/asf-enc.c
289 289

  
290 290
    bit_rate = 0;
291 291
    for(n=0;n<s->nb_streams;n++) {
292
        enc = &s->streams[n]->codec;
292
        enc = s->streams[n]->codec;
293 293

  
294 294
        av_set_pts_info(s->streams[n], 32, 1, 1000); /* 32 bit pts in ms */
295 295

  
......
353 353
        int er_spr_len = 0;
354 354
        //        ASFStream *stream = &asf->streams[n];
355 355

  
356
        enc = &s->streams[n]->codec;
356
        enc = s->streams[n]->codec;
357 357
        asf->streams[n].num = n + 1;
358 358
        asf->streams[n].seq = 0;
359 359

  
......
437 437
    for(n=0;n<s->nb_streams;n++) {
438 438
        AVCodec *p;
439 439

  
440
        enc = &s->streams[n]->codec;
440
        enc = s->streams[n]->codec;
441 441
        p = avcodec_find_encoder(enc->codec_id);
442 442

  
443 443
        put_le16(pb, asf->streams[n].num);
......
730 730
    int64_t packet_st,pts; 
731 731
    int start_sec,i;
732 732

  
733
    codec = &s->streams[pkt->stream_index]->codec;
733
    codec = s->streams[pkt->stream_index]->codec;
734 734
    stream = &asf->streams[pkt->stream_index];
735 735

  
736 736
    //XXX /FIXME use duration from AVPacket (quick hack by)

Also available in: Unified diff