Thanks for the replies, I still have some confusions with the "AVPackets", Imagine I have a packet of type "AVPacket" To zero out its data I used to use:
* for( k=0 ; k < packet.size ; k++)* * packet.data[k] = 0;* but seemingly I had an incorrect assumption here(the assumption was "packet.size" is actually "sizeof(packet.data)", but when I checked the values, the former is of order of 1000, while the latter is simply 4) First of all it is really weired for me that for a video "sizeof(packet.data) = 4", does it mean "packet.data" is an array of only 4 "uint8_t"s??? An second, what is "packet.size", if it is not the number of elements in "packet.data" array? And Third, how can I zero out my whole packet's data? Thanks, Alireza _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
