Signed-off-by: Ho Ming Shun
---
libavcodec/mmaldec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c
index 6dbb991ae1..ff8772b0a6 100644
--- a/libavcodec/mmaldec.c
+++ b/libavcodec/mmaldec.c
@@ -660,7 +660,7 @@ static int
extra_data and normal packets (from ff_decode_get_packet) processing do
not overlap, thus we can re-use the spare AVPacket to send to
ffmmal_add_packet.
Furthermore, this removes allocation of AVPacket on the stack and stops
using deprecated av_init_packet.
Signed-off-by: Ho Ming Shun
Use spare packet allocated in DecodeSimpleContext to handle packet
submission into ffmmal_add_packet.
Signed-off-by: Ho Ming Shun
---
libavcodec/mmaldec.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c
index d4788b33f3
->queue_decoded_frames to grow with no way
of draining the queue.
Testing this with mpv streaming from a live RTSP source visibly reduced
latency introduced by frames waiting in queue_decoded_frames from
roughly 2s to 0.
Signed-off-by: Ho Ming Shun
---
libavcodec/mmaldec.c |
v2:
Signed-off and rebased
This series switches mmaldec to use the decoupled dataflow API to reduce
excessive buffering in the driver.
At the same time, remove dependency on sizeof(AVPacket) which is
deprecated. Also fix all compile warnings.
Ho Ming Shun (4):
avcodec/mmaldec: use decoupled
Signed-off-by: Ho Ming Shun
---
libavcodec/mmaldec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c
index 0aad7d0bb1..8ec0fe 100644
--- a/libavcodec/mmaldec.c
+++ b/libavcodec/mmaldec.c
@@ -660,7 +660,7 @@ static int
extra_data and normal packets (from ff_decode_get_packet) processing do
not overlap, thus we can re-use the spare AVPacket to send to
ffmmal_add_packet.
Furthermore, this removes allocation of AVPacket on the stack and stops
using deprecated av_init_packet.
---
libavcodec/mmaldec.c | 8 +++-
Use spare packet allocated in DecodeSimpleContext to handle packet
submission into ffmmal_add_packet.
---
libavcodec/mmaldec.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c
index b97cc6ff5e..aab107d325 100644
--- a/libavcode
->queue_decoded_frames to grow with no way
of draining the queue.
Testing this with mpv streaming from a live RTSP source visibly reduced
latency introduced by frames waiting in queue_decoded_frames from
roughly 2s to 0.
Signed-off-by: Ho Ming Shun
---
libavcodec/mmaldec.c |
This series switches mmaldec to use the decoupled dataflow API to reduce
excessive buffering in the driver.
At the same time, remove dependency on sizeof(AVPacket) which is
deprecated. Also fix all compile warnings.
Ho Ming Shun (4):
avcodec/mmaldec: use decoupled dataflow
avcodec/mmaldec
->queue_decoded_frames to grow with no way
of draining the queue.
Testing this with mpv streaming from an RTSP source reduced decode
latency from 2s to about 0.2s.
Signed-off-by: Ho Ming Shun
---
libavcodec/mmaldec.c | 30 +++---
1 file changed, 23 insertions(+), 7 deletions(-)
d
Signed-off-by: Ho Ming Shun
---
libavcodec/mmaldec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c
index 5b75a1e74d..96140bf53d 100644
--- a/libavcodec/mmaldec.c
+++ b/libavcodec/mmaldec.c
@@ -772,7 +772,9 @@ static int ffmmal_decode
Signed-off-by: Ho Ming Shun
---
libavcodec/mmaldec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c
index 8c7d749742..5b75a1e74d 100644
--- a/libavcodec/mmaldec.c
+++ b/libavcodec/mmaldec.c
@@ -651,7 +651,7 @@ static int
/pull/9189
Signed-off-by: Ho Ming Shun
---
libavcodec/mmaldec.c | 38 +++---
1 file changed, 23 insertions(+), 15 deletions(-)
diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c
index 8c7d749742..6c3e5d99b6 100644
--- a/libavcodec/mmaldec.c
+++ b/libavcodec
14 matches
Mail list logo