Revision f9e5b942 libavformat/ncdec.c

View differences:

libavformat/ncdec.c
62 62
static int nc_read_packet(AVFormatContext *s, AVPacket *pkt)
63 63
{
64 64
    int size;
65
    int ret;
65 66

  
66 67
    uint32_t state=-1;
67 68
    while (state != NC_VIDEO_FLAG) {
......
79 80
        return AVERROR(EAGAIN);
80 81
    }
81 82

  
82
    int ret = av_get_packet(s->pb, pkt, size);
83
    ret = av_get_packet(s->pb, pkt, size);
83 84
    if (ret != size) {
84 85
        if (ret > 0) av_free_packet(pkt);
85 86
        return AVERROR(EIO);

Also available in: Unified diff