summaryrefslogtreecommitdiff
path: root/libavdevice/alsa.h
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2021-02-09 22:24:50 +0100
committerMarton Balint <cus@passwd.hu>2021-03-12 23:55:30 +0100
commit1a90cf4410a3464c8d749242e23629776f310ee0 (patch)
tree29e9f37ea37029c880933fa0508e26d6fbfd283d /libavdevice/alsa.h
parent6e7e3a3820f0888ff92d6be44f40ff733bcce874 (diff)
downloadffmpeg-1a90cf4410a3464c8d749242e23629776f310ee0.tar.gz
avdevice/alsa_dec: make sure we have enough data in non-blocking mode
Otherwise we might return 1-2 samples per packet if av_read_frame() call rate is only sligthly less than the stream sample rate. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavdevice/alsa.h')
-rw-r--r--libavdevice/alsa.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavdevice/alsa.h b/libavdevice/alsa.h
index 1ed8c82199..07783c983a 100644
--- a/libavdevice/alsa.h
+++ b/libavdevice/alsa.h
@@ -58,6 +58,7 @@ typedef struct AlsaData {
void *reorder_buf;
int reorder_buf_size; ///< in frames
int64_t timestamp; ///< current timestamp, without latency applied.
+ AVPacket *pkt;
} AlsaData;
/**