]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/img2dec.c
avformat/img2dec: initialize pkt->pos for image pipes
[ffmpeg] / libavformat / img2dec.c
index bb941268d67b575b7ba0130f62faf6252d02a156..c88db69782a2aad2dd6c2767538281fb787d2eb3 100644 (file)
@@ -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]) {