[FFmpeg-devel] [PATCH 14/19] 8svx: flushing is done with empty packets, not NULL.

Michael Niedermayer michaelni at gmx.at
Mon Jul 30 04:31:20 CEST 2012


On Sun, Jul 29, 2012 at 03:57:32PM +0200, Nicolas George wrote:
> 
> Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
> ---
>  libavcodec/8svx.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/8svx.c b/libavcodec/8svx.c
> index c1acc60..3ebc330 100644
> --- a/libavcodec/8svx.c
> +++ b/libavcodec/8svx.c
> @@ -110,7 +110,7 @@ static int eightsvx_decode_frame(AVCodecContext *avctx, void *data,
>      uint8_t *src, *dst;
>  
>      /* decode and interleave the first packet */
> -    if (!esc->samples && avpkt) {
> +    if (!esc->samples && avpkt && avpkt->size) {

8svx doesnt have CODEC_CAP_DELAY so i think avpkt && avpkt->size
should be 1



-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I do not agree with what you have to say, but I'll defend to the death your
right to say it. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120730/a4b2da5f/attachment.asc>


More information about the ffmpeg-devel mailing list