Revision 817a3de9

View differences:

output_example.c
157 157
    pkt.size= avcodec_encode_audio(c, audio_outbuf, audio_outbuf_size, samples);
158 158

  
159 159
    if (c->coded_frame->pts != AV_NOPTS_VALUE)
160
    pkt.pts= av_rescale_q(c->coded_frame->pts, c->time_base, st->time_base);
160
        pkt.pts= av_rescale_q(c->coded_frame->pts, c->time_base, st->time_base);
161 161
    pkt.flags |= PKT_FLAG_KEY;
162 162
    pkt.stream_index= st->index;
163 163
    pkt.data= audio_outbuf;
......
382 382
            av_init_packet(&pkt);
383 383

  
384 384
            if (c->coded_frame->pts != AV_NOPTS_VALUE)
385
            pkt.pts= av_rescale_q(c->coded_frame->pts, c->time_base, st->time_base);
385
                pkt.pts= av_rescale_q(c->coded_frame->pts, c->time_base, st->time_base);
386 386
            if(c->coded_frame->key_frame)
387 387
                pkt.flags |= PKT_FLAG_KEY;
388 388
            pkt.stream_index= st->index;

Also available in: Unified diff