Ticket #47: fix90000.diff

File fix90000.diff, 476 bytes (added by divVerent, 5 years ago)
  • libavformat/mpegtsenc.c

    diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
    index bfd21db..4720724 100644
    a b static int mpegts_write_header(AVFormatContext *s) 
    424424    /* assign pids to each stream */ 
    425425    for(i = 0;i < s->nb_streams; i++) { 
    426426        st = s->streams[i]; 
     427        av_set_pts_info(st, 64, 1, 90000); 
    427428        ts_st = av_mallocz(sizeof(MpegTSWriteStream)); 
    428429        if (!ts_st) 
    429430            goto fail;