Re: [FFmpeg-devel] [PATCH] avcodec: Allow to query number of consumed bytes using the new API

2019-01-31 Thread jannis_wth
30.01.19 21:42 - jannis_wth: > 30.01.19 21:02 - James Almer: >> I guess avctx->internal->last_pkt_props could work for this, but it may >> not be consistent across decoders. > > avctx->internal->last_pkt_props stores the properties of the last passed > packet,

Re: [FFmpeg-devel] [PATCH] avcodec: Allow to query number of consumed bytes using the new API

2019-01-30 Thread jannis_wth
30.01.19 21:02 - James Almer: > On 1/30/2019 4:19 PM, jannis_wth wrote: >> 30.01.19 19:51 James Almer: >>> On 1/30/2019 3:43 PM, jannis_wth wrote: >>>> Okay, so how about this one? >>>> This functionality is important if you don't know the pac

Re: [FFmpeg-devel] [PATCH] avcodec: Allow to query number of consumed bytes using the new API

2019-01-30 Thread jannis_wth
30.01.19 19:51 James Almer: > On 1/30/2019 3:43 PM, jannis_wth wrote: >> Okay, so how about this one? >> This functionality is important if you don't know the packet size you >> are feeding. It allows you to reconstruct the size. > > In what scenario you can't

[FFmpeg-devel] [PATCH] avcodec: Allow to query number of consumed bytes using the new API

2019-01-30 Thread jannis_wth
This patch fixes the issue discussed in ticket #7708. >From 756b3b59ac491bdbf01de4f399f5eeb74db8861a Mon Sep 17 00:00:00 2001 From: user Date: Wed, 30 Jan 2019 16:48:58 +0100 Subject: [PATCH 1/1] avcodec: Allow to query number of consumed bytes using the new API Currently the only way to get the