[FFmpeg-devel] [PATCH v2] ffmpeg: count packets when queued

Muhammad Faiz mfcc64 at gmail.com
Tue May 2 22:14:52 EEST 2017


On Wed, May 3, 2017 at 12:58 AM, Michael Niedermayer
<michael at niedermayer.cc> wrote:
> On Tue, May 02, 2017 at 02:39:46PM +0700, Muhammad Faiz wrote:
>> Because write_packet() fakely writes packets to muxer by queueing
>> them when muxer hasn't been initialized, it should also increment
>> frame_number fakely.
>> This is required because code in do_streamcopy() rely on
>> frame_number.
>>
>> Should fix Ticket6227
>>
>> Signed-off-by: Muhammad Faiz <mfcc64 at gmail.com>
>> ---
>>  ffmpeg.c | 38 ++++++++++++++++++++------------------
>>  1 file changed, 20 insertions(+), 18 deletions(-)
>
> probably ok

Applied.

>
> i think in the long run all this queeuing stuff should be moved into
> libavformat (there are already queues in there as well) and
> not require logic in the user apps, thats off topic though
>
> Also, is there an simple testcase ? if so please add it to fate

No. Maybe testcase in ticket entry can be a candidate.

Thank's.


More information about the ffmpeg-devel mailing list