summaryrefslogtreecommitdiff
path: root/libavformat/internal.h
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2021-11-07 18:21:17 +0100
committerMarton Balint <cus@passwd.hu>2021-11-14 18:30:57 +0100
commit406ffd9b9b99fa096bcfe31b467453824d1542e7 (patch)
tree38caa77622a1fe7fbda536907c13cd759e457164 /libavformat/internal.h
parent0a9edac48eacc0f914f489dc7953a51bf24bb99c (diff)
avformat/demux: allow total size of packets in raw_packet_buffer to reach probesize
Previously this was hardcoded to 2500000 bytes, so probing of the stream codecs was always limited by this, and not probesize. Also keep track of the actual size of packets in raw_packet_buffer and not the remaining size for simplicity. Fixes ticket #5860. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index f1ae7db365..1f301dd17a 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -127,10 +127,9 @@ typedef struct FFFormatContext {
*/
AVPacket *pkt;
/**
- * Remaining size available for raw_packet_buffer, in bytes.
+ * Sum of the size of packets in raw_packet_buffer, in bytes.
*/
-#define RAW_PACKET_BUFFER_SIZE 2500000
- int raw_packet_buffer_remaining_size;
+ int raw_packet_buffer_size;
/**
* Offset to remap timestamps to be non-negative.