projects
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
avformat/img2dec: initialize pkt->pos for image pipes
[ffmpeg.git]
/
libavformat
/
img2dec.c
diff --git
a/libavformat/img2dec.c
b/libavformat/img2dec.c
index
bb94126
..
c88db69
100644
(file)
--- 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]) {