On 02/21/2012 01:29 PM, Paul B Mahol wrote: > On 2/21/12, Justin Ruggles <[email protected]> wrote: >> On 02/21/2012 01:15 PM, Paul B Mahol wrote: >> >>> Signed-off-by: Paul B Mahol <[email protected]> >>> --- >>> libavformat/cdxl.c | 14 ++++++++++---- >>> 1 files changed, 10 insertions(+), 4 deletions(-) >> [...] >>> @@ -140,6 +145,7 @@ static int cdxl_read_packet(AVFormatContext *s, >>> AVPacket *pkt) >>> pkt->stream_index = cdxl->video_stream_index; >>> pkt->flags |= AV_PKT_FLAG_KEY; >>> pkt->pos = pos; >>> + pkt->duration = cdxl->framerate ? 1 : audio_size ? >>> audio_size : 220; >> >> >> where does the 220 default come from? that's somewhere around 50fps for >> the default sample rate. > > Yes, that seems reasonable default value for files without any audio to me.
Patch looks ok then. -Justin _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
