Revision 7e04cfba libavformat/swfdec.c

View differences:

libavformat/swfdec.c
87 87
    int tag, len, i, frame, v;
88 88

  
89 89
    for(;;) {
90
        uint64_t pos = url_ftell(pb);
90 91
        tag = get_swf_tag(pb, &len);
91 92
        if (tag < 0)
92 93
            return AVERROR(EIO);
......
148 149
                if (st->codec->codec_type == CODEC_TYPE_VIDEO && st->id == ch_id) {
149 150
                    frame = get_le16(pb);
150 151
                    av_get_packet(pb, pkt, len-2);
152
                    pkt->pos = pos;
151 153
                    pkt->pts = frame;
152 154
                    pkt->stream_index = st->index;
153 155
                    return pkt->size;
......
163 165
            } else { // ADPCM, PCM
164 166
                av_get_packet(pb, pkt, len);
165 167
            }
168
            pkt->pos = pos;
166 169
            pkt->stream_index = st->index;
167 170
            return pkt->size;
168 171
                }
......
195 198
            } else {
196 199
                get_buffer(pb, pkt->data + 4, pkt->size - 4);
197 200
            }
201
            pkt->pos = pos;
198 202
            pkt->stream_index = st->index;
199 203
            return pkt->size;
200 204
        }

Also available in: Unified diff