Mercurial > libavformat.hg
changeset 1365:54d50e11dc57 libavformat
return cleanup
author | michael |
---|---|
date | Tue, 10 Oct 2006 23:28:27 +0000 |
parents | 00cdaa81086a |
children | 31ab2ac4e173 |
files | amr.c |
diffstat | 1 files changed, 3 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/amr.c Tue Oct 10 14:29:03 2006 +0000 +++ b/amr.c Tue Oct 10 23:28:27 2006 +0000 @@ -48,7 +48,7 @@ } else { - //This is an error! + return -1; } put_flush_packet(pb); return 0; @@ -168,8 +168,6 @@ av_free_packet(pkt); return AVERROR_IO; } - - return 0; } else if(enc->codec_id == CODEC_ID_AMR_WB) { @@ -203,13 +201,12 @@ av_free_packet(pkt); return AVERROR_IO; } - - return 0; } else { - return AVERROR_IO; + assert(0); } + return 0; } static int amr_read_close(AVFormatContext *s)