Mercurial > libavformat.hg
changeset 3390:771ab1d4fd6e libavformat
Removing dead code, fixes CID4 RUN2.
author | michael |
---|---|
date | Wed, 28 May 2008 21:14:10 +0000 |
parents | 788591625459 |
children | 39750abd9bab |
files | psxstr.c |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
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)