Changes between Initial Version and Version 1 of Ticket #6695


Ignore:
Timestamp:
Sep 26, 2017, 11:51:21 AM (22 months ago)
Author:
cehoyos
Comment:

Please send your patch - made with git format-patch - to the development mailing list.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6695

    • Property Keywords regression added
    • Property Priority changed from normal to important
    • Property Component changed from undetermined to avformat
  • Ticket #6695 – Description

    initial v1  
    11avformat_new_stream() is not initializing AVStream->cur_dts.  This causes problems down in av_interleaved_write_frame(), compute_muxer_pkt_fields() on this test since cur_dts is randomly set.
    2 
     2{{{
    33    if (st->cur_dts && st->cur_dts != AV_NOPTS_VALUE &&
    44        ((!(s->oformat->flags & AVFMT_TS_NONSTRICT) &&
     
    1111        return AVERROR(EINVAL);
    1212    }
    13 
     13}}}
    1414Changing my code like this makes it work as expected.
    15 
     15{{{
    1616        out_stream = avformat_new_stream(ofmt_ctx, NULL);
    1717        out_stream->cur_dts = AV_NOPTS_VALUE;
    18 
     18}}}
    1919I'm using git head from 9/24. This is a recent change since my code worked on older versions of ffmpeg.