summaryrefslogtreecommitdiff
path: root/libavformat/img2dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-25 17:06:33 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-09-25 17:16:14 +0200
commit6d35aba167a2333367298fced3724b16261dcdf9 (patch)
tree76727f8ca7414cbf9ae239d071d2aceb84352598 /libavformat/img2dec.c
parent2497914a1846c1dbcfb853ea834da0038f0e22f5 (diff)
downloadffmpeg-6d35aba167a2333367298fced3724b16261dcdf9.tar.gz
avformat/img2dec: initialize pkt->pos for image pipes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/img2dec.c')
-rw-r--r--libavformat/img2dec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index bb941268d6..c88db69782 100644
--- a/libavformat/img2dec.c
+++ b/libavformat/img2dec.c
@@ -450,6 +450,9 @@ int ff_img_read_packet(AVFormatContext *s1, AVPacket *pkt)
pkt->pts = s->pts;
}
+ if (s->is_pipe)
+ pkt->pos = avio_tell(f[0]);
+
pkt->size = 0;
for (i = 0; i < 3; i++) {
if (f[i]) {