[FFmpeg-devel] [PATCH] asfenc.c: Fixed ASF Encoder's Assertion Failure Issue

Chiranjeevi Melam cmelam at rgbnetworks.com
Mon Sep 12 17:01:01 CEST 2011

Can you guys please take a look at the patch and let me know your comments.

-----Original Message-----
From: ffmpeg-devel-bounces at ffmpeg.org [mailto:ffmpeg-devel-bounces at ffmpeg.org] On Behalf Of Chiranjeevi Melam
Sent: Wednesday, September 07, 2011 10:15 AM
To: ffmpeg-devel at ffmpeg.org
Subject: [FFmpeg-devel] [PATCH] asfenc.c: Fixed ASF Encoder's Assertion Failure Issue

Hi ,
Attached is the patch in ASF Encoder. The issue will surface only after running the ffserver for multiple days.
"Fixed  the assertion failure issue in ASF Encoder  which will surface after running multiple days. Fix is changing the time stamp variable from " int" type to "int64_t " type." The 32 bit roll over causes the variable "packet_timestamp_end"  >=  to "packet_timestamp_start" which leads to assertion failure.

Here is some debug info

fserver: libavformat/asfenc.c:654: flush_packet: Assertion `asf->packet_timestamp_end >= asf->packet_timestamp_start' failed.
/opt/ripcode/bin/ffserver.sh: line 4: 25195 Aborted                 (core
dumped) /opt/ripcode/bin/ffserver ${1+"$@"}


More information about the ffmpeg-devel mailing list