Re: [FFmpeg-devel] [PATCH] libavu: add pkt_timebase to AVFrame.

2014-07-20 Thread Michael Niedermayer
On Sun, Jul 20, 2014 at 05:27:16PM +0200, wm4 wrote: > On Sun, 20 Jul 2014 17:01:42 +0200 > Michael Niedermayer wrote: [...] > > also some codecs allocate multiple AVFrames with different dimensions > > hevc is one. > > and hypothetical future support of things like spatial scalability > > would

Re: [FFmpeg-devel] [PATCH] libavu: add pkt_timebase to AVFrame.

2014-07-20 Thread wm4
On Sun, 20 Jul 2014 17:01:42 +0200 Michael Niedermayer wrote: > On Sun, Jul 20, 2014 at 04:26:01PM +0200, wm4 wrote: > > On Fri, 18 Jul 2014 13:12:39 +0200 > > Michael Niedermayer wrote: > > > > > On Fri, Jul 18, 2014 at 12:47:06PM +0200, Hendrik Leppkes wrote: > > > > Am 18.07.2014 12:04 schri

Re: [FFmpeg-devel] [PATCH] libavu: add pkt_timebase to AVFrame.

2014-07-20 Thread Michael Niedermayer
On Sun, Jul 20, 2014 at 04:26:01PM +0200, wm4 wrote: > On Fri, 18 Jul 2014 13:12:39 +0200 > Michael Niedermayer wrote: > > > On Fri, Jul 18, 2014 at 12:47:06PM +0200, Hendrik Leppkes wrote: > > > Am 18.07.2014 12:04 schrieb "Benoit Fouet" : > > > > > > > > In order to easily correlate pkt_duratio

Re: [FFmpeg-devel] [PATCH] libavu: add pkt_timebase to AVFrame.

2014-07-20 Thread wm4
On Fri, 18 Jul 2014 13:12:39 +0200 Michael Niedermayer wrote: > On Fri, Jul 18, 2014 at 12:47:06PM +0200, Hendrik Leppkes wrote: > > Am 18.07.2014 12:04 schrieb "Benoit Fouet" : > > > > > > In order to easily correlate pkt_duration to its real duration, add the > > > packet time base information

Re: [FFmpeg-devel] [PATCH] libavu: add pkt_timebase to AVFrame.

2014-07-20 Thread Michael Niedermayer
On Fri, Jul 18, 2014 at 01:12:39PM +0200, Michael Niedermayer wrote: > On Fri, Jul 18, 2014 at 12:47:06PM +0200, Hendrik Leppkes wrote: > > Am 18.07.2014 12:04 schrieb "Benoit Fouet" : > > > > > > In order to easily correlate pkt_duration to its real duration, add the > > > packet time base informa

Re: [FFmpeg-devel] [PATCH] libavu: add pkt_timebase to AVFrame.

2014-07-18 Thread Michael Niedermayer
On Fri, Jul 18, 2014 at 12:47:06PM +0200, Hendrik Leppkes wrote: > Am 18.07.2014 12:04 schrieb "Benoit Fouet" : > > > > In order to easily correlate pkt_duration to its real duration, add the > > packet time base information to the frame structure. > > > > Fixes issue #3052 > > The code in avcodec

Re: [FFmpeg-devel] [PATCH] libavu: add pkt_timebase to AVFrame.

2014-07-18 Thread Hendrik Leppkes
Am 18.07.2014 12:04 schrieb "Benoit Fouet" : > > In order to easily correlate pkt_duration to its real duration, add the > packet time base information to the frame structure. > > Fixes issue #3052 The code in avcodec doesn't know the timebase, unless the user tells it. And if the user wants to t

Re: [FFmpeg-devel] [PATCH] libavu: add pkt_timebase to AVFrame.

2014-07-18 Thread Nicolas George
Le decadi 30 messidor, an CCXXII, Benoit Fouet a écrit : > +if (frame && av_frame_get_pkt_timebase(frame).num) > +avpkt->duration = av_rescale_q(av_frame_get_pkt_duration(frame), > + av_frame_get_pkt_timebase(frame), > +

[FFmpeg-devel] [PATCH] libavu: add pkt_timebase to AVFrame.

2014-07-18 Thread Benoit Fouet
In order to easily correlate pkt_duration to its real duration, add the packet time base information to the frame structure. Fixes issue #3052 --- libavcodec/utils.c | 6 ++ libavutil/frame.c | 3 +++ libavutil/frame.h | 11 +++ 3 files changed, 20 insertions(+) diff --git a/liba