Mercurial > libavformat.hg
diff psxstr.c @ 2006:2f0154760e5f libavformat
Get rid of unnecessary pointer casts.
patch by Nicholas Tung, ntung ntung com
| author | diego |
|---|---|
| date | Sun, 08 Apr 2007 20:24:16 +0000 |
| parents | a782462e2497 |
| children | 7eb456c4ed8a |
line wrap: on
line diff
--- a/psxstr.c Sun Apr 08 20:21:11 2007 +0000 +++ b/psxstr.c Sun Apr 08 20:24:16 2007 +0000 @@ -126,7 +126,7 @@ AVFormatParameters *ap) { ByteIOContext *pb = &s->pb; - StrDemuxContext *str = (StrDemuxContext *)s->priv_data; + StrDemuxContext *str = s->priv_data; AVStream *st; unsigned char sector[RAW_CD_SECTOR_SIZE]; int start; @@ -250,7 +250,7 @@ AVPacket *ret_pkt) { ByteIOContext *pb = &s->pb; - StrDemuxContext *str = (StrDemuxContext *)s->priv_data; + StrDemuxContext *str = s->priv_data; unsigned char sector[RAW_CD_SECTOR_SIZE]; int channel; int packet_read = 0; @@ -346,7 +346,7 @@ static int str_read_close(AVFormatContext *s) { - StrDemuxContext *str = (StrDemuxContext *)s->priv_data; + StrDemuxContext *str = s->priv_data; av_free(str->video_chunk);
