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

Michael Niedermayer michael at niedermayer.cc
Tue May 2 20:58:07 EEST 2017

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

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


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170502/fe77c1e2/attachment.sig>

More information about the ffmpeg-devel mailing list