[vlc-commits] packetizer: a52: fix endless loop

Francois Cartegnie git at videolan.org
Fri Dec 23 17:40:21 CET 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Dec 23 17:35:20 2016 +0100| [1151319244f73ca746dd23871788841dd29f37fb] | committer: Francois Cartegnie

packetizer: a52: fix endless loop

On flush, we need to make sure there is enough frame data
available otherwise data is never dequeued and we push only
uninitialized buffer to decoder. (as we do not check
GetBytes's return code)

refs streams/ts/transport_error.ts

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1151319244f73ca746dd23871788841dd29f37fb
---

 modules/packetizer/a52.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/packetizer/a52.c b/modules/packetizer/a52.c
index ca42054..c8285f8 100644
--- a/modules/packetizer/a52.c
+++ b/modules/packetizer/a52.c
@@ -227,7 +227,7 @@ static block_t *PacketizeBlock( decoder_t *p_dec, block_t **pp_block )
             {
                 if( p_block == NULL ) /* drain */
                 {
-                    p_sys->i_state = STATE_SEND_DATA;
+                    p_sys->i_state = STATE_GET_DATA;
                     break;
                 }
                 /* Need more data */



More information about the vlc-commits mailing list