Commit 6d35aba1 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/img2dec: initialize pkt->pos for image pipes

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2497914a
...@@ -450,6 +450,9 @@ int ff_img_read_packet(AVFormatContext *s1, AVPacket *pkt) ...@@ -450,6 +450,9 @@ int ff_img_read_packet(AVFormatContext *s1, AVPacket *pkt)
pkt->pts = s->pts; pkt->pts = s->pts;
} }
if (s->is_pipe)
pkt->pos = avio_tell(f[0]);
pkt->size = 0; pkt->size = 0;
for (i = 0; i < 3; i++) { for (i = 0; i < 3; i++) {
if (f[i]) { if (f[i]) {
......
...@@ -9,7 +9,7 @@ best_effort_timestamp=0 ...@@ -9,7 +9,7 @@ best_effort_timestamp=0
best_effort_timestamp_time=0.000000 best_effort_timestamp_time=0.000000
pkt_duration=1 pkt_duration=1
pkt_duration_time=0.040000 pkt_duration_time=0.040000
pkt_pos=N/A pkt_pos=0
pkt_size=67604 pkt_size=67604
width=200 width=200
height=112 height=112
......
...@@ -9,7 +9,7 @@ best_effort_timestamp=0 ...@@ -9,7 +9,7 @@ best_effort_timestamp=0
best_effort_timestamp_time=0.000000 best_effort_timestamp_time=0.000000
pkt_duration=1 pkt_duration=1
pkt_duration_time=0.040000 pkt_duration_time=0.040000
pkt_pos=N/A pkt_pos=0
pkt_size=39276 pkt_size=39276
width=400 width=400
height=225 height=225
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment