Mercurial > libavformat.hg
diff psxstr.c @ 3390:771ab1d4fd6e libavformat
Removing dead code, fixes CID4 RUN2.
author | michael |
---|---|
date | Wed, 28 May 2008 21:14:10 +0000 |
parents | d52c718e83f9 |
children | 7a0230981402 |
line wrap: on
line diff
--- a/psxstr.c Wed May 28 20:33:22 2008 +0000 +++ b/psxstr.c Wed May 28 21:14:10 2008 +0000 @@ -253,11 +253,9 @@ StrDemuxContext *str = s->priv_data; unsigned char sector[RAW_CD_SECTOR_SIZE]; int channel; - int packet_read = 0; - int ret = 0; AVPacket *pkt; - while (!packet_read) { + while (1) { if (get_buffer(pb, sector, RAW_CD_SECTOR_SIZE) != RAW_CD_SECTOR_SIZE) return AVERROR(EIO); @@ -340,8 +338,6 @@ if (url_feof(pb)) return AVERROR(EIO); } - - return ret; } static int str_read_close(AVFormatContext *s)