X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fiff.c;h=7601d6d73b19defef209e5f8fc93c91658ecc31a;hb=afc0a24d7d60f855676d8069011624d52361d7ed;hp=9455d96817ead9cc477a9f8faa8f74b8389c1690;hpb=d2a847c203b5876e2bb5f0bc216b0af625f077a2;p=ffmpeg diff --git a/libavformat/iff.c b/libavformat/iff.c index 9455d96817e..7601d6d73b1 100644 --- a/libavformat/iff.c +++ b/libavformat/iff.c @@ -85,7 +85,6 @@ typedef struct { uint64_t body_pos; uint32_t body_size; uint32_t sent_bytes; - uint32_t audio_frame_count; svx8_compression_type svx8_compression; bitmap_compression_type bitmap_compression; ///< delta compression method used unsigned bpp; ///< bits per plane to decode (differs from bits_per_coded_sample if HAM) @@ -136,7 +135,7 @@ static int iff_read_header(AVFormatContext *s, unsigned transparency = 0; unsigned masking = 0; // no mask - st = av_new_stream(s, 0); + st = avformat_new_stream(s, NULL); if (!st) return AVERROR(ENOMEM); @@ -240,7 +239,7 @@ static int iff_read_header(AVFormatContext *s, switch (iff->svx8_compression) { case COMP_NONE: - st->codec->codec_id = CODEC_ID_8SVX_RAW; + st->codec->codec_id = CODEC_ID_PCM_S8_PLANAR; break; case COMP_FIB: st->codec->codec_id = CODEC_ID_8SVX_FIB; @@ -313,7 +312,7 @@ static int iff_read_packet(AVFormatContext *s, int ret; if(iff->sent_bytes >= iff->body_size) - return AVERROR(EIO); + return AVERROR_EOF; if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO) { ret = av_get_packet(pb, pkt, iff->body_size);