# HG changeset patch # User michael # Date 1212009250 0 # Node ID 771ab1d4fd6e977e942d1cb6cd169472fa81885c # Parent 7885916254591bc25335a87cdc77e23bd26546a8 Removing dead code, fixes CID4 RUN2. diff -r 788591625459 -r 771ab1d4fd6e psxstr.c --- 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)