Revision c351524c

View differences:

libavformat/voc.h
26 26
#include "riff.h"    /* for CodecTag */
27 27

  
28 28
typedef struct voc_dec_context {
29
    int remaining_size;
29
    int64_t remaining_size;
30 30
} VocDecContext;
31 31

  
32 32
typedef enum voc_type {
libavformat/vocdec.c
76 76
        if (type == VOC_TYPE_EOF)
77 77
            return AVERROR(EIO);
78 78
        voc->remaining_size = get_le24(pb);
79
        if (!voc->remaining_size) {
80
            if (url_is_streamed(s->pb))
81
                return AVERROR(EIO);
82
            voc->remaining_size = url_fsize(pb) - url_ftell(pb);
83
        }
79 84
        max_size -= 4;
80 85

  
81 86
        switch (type) {

Also available in: Unified diff