vlc | branch: master | Francois Cartegnie <[email protected]> | Mon Jun 2 15:25:43 2014 +0200| [fb6bd64b17c5b9873bb856087fa3dcd98d69f623] | committer: Francois Cartegnie
encoder: twolame: return NULL if flush returns 0 bytes (fix #11553) > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fb6bd64b17c5b9873bb856087fa3dcd98d69f623 --- modules/codec/twolame.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/codec/twolame.c b/modules/codec/twolame.c index 041357b..4d2588a 100644 --- a/modules/codec/twolame.c +++ b/modules/codec/twolame.c @@ -270,8 +270,7 @@ static block_t *Encode( encoder_t *p_enc, block_t *p_aout_buf ) i_used = twolame_encode_flush( p_sys->p_twolame, p_sys->p_out_buffer, MAX_CODED_FRAME_SIZE ); - - if( i_used < 0 ) + if( i_used <= 0 ) return NULL; p_block = block_Alloc( i_used ); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
