Any possibility to detect maximum packet (AVpacket) size that av_read_frame() can read?
I was looking for the same recently. It appears that av_read_frame internally calls a codec specific read_packet function for each codec/format. This in turns allocate memory per packet and frees it depending on the maximum limits that the codec/format poses. So as long as you have memory to support the (in)valid stream you should be fine and the limits are specific to the codec/format decoders. [YOu can find the function defined in AVInputFormat for each format as .read_packet ].
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With