vlc | branch: master | Francois Cartegnie <[email protected]> | 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 */

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to