On 31/08/14 22:53, James Almer wrote:
> On 31/08/14 4:24 PM, Luca Barbato wrote:
>> ---
>>  libavcodec/avcodec.h   |  5 +++++
>>  libavcodec/avpacket.c  | 56 
>> ++++++++++++++++++++++++++++++++++++++++++++++++++
>>  libavcodec/internal.h  | 36 ++++++++++++++++++++++++++++++++
>>  libavformat/avformat.h |  6 ------
>>  4 files changed, 97 insertions(+), 6 deletions(-)
>>
>> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
>> index 270c6c8..116496f 100644
>> --- a/libavcodec/avcodec.h
>> +++ b/libavcodec/avcodec.h
>> @@ -1019,6 +1019,11 @@ typedef struct AVPacket {
>>  #define AV_PKT_FLAG_KEY     0x0001 ///< The packet contains a keyframe
>>  #define AV_PKT_FLAG_CORRUPT 0x0002 ///< The packet content is corrupted
>>  
>> +typedef struct AVPacketList {
>> +    AVPacket pkt;
>> +    struct AVPacketList *next;
>> +} AVPacketList;
>> +
>>  enum AVSideDataParamChangeFlags {
>>      AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT  = 0x0001,
>>      AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_LAYOUT = 0x0002,
>> diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c
>> index 25eabdb..bea12df 100644
>> --- a/libavcodec/avpacket.c
>> +++ b/libavcodec/avpacket.c
>> @@ -26,6 +26,7 @@
>>  #include "libavutil/internal.h"
>>  #include "libavutil/mathematics.h"
>>  #include "libavutil/mem.h"
>> +#include "internal.h"
>>  #include "avcodec.h"
>>  #if FF_API_DESTRUCT_PACKET
>>  
>> @@ -393,3 +394,58 @@ void av_packet_rescale_ts(AVPacket *pkt, AVRational 
>> src_tb, AVRational dst_tb)
>>      if (pkt->convergence_duration > 0)
>>          pkt->convergence_duration = av_rescale_q(pkt->convergence_duration, 
>> src_tb, dst_tb);
>>  }
>> +
>> +int ff_packet_list_put(AVPacketList **head, AVPacketList **tail,
>> +                       AVPacket *pkt)
> 
> avpriv_? (in all three functions).

later av_packet once we decide a better signature =)

> lavf can make good use of all this. And i think your original patchset did as 
> much.

Yes, but the signature is horrible and I couldn't find time to make it
nicer ^^

> Thanks for resurrecting this for that matter.

Sorry for keeping it pending for that long...

lu
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to