This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
avformat/img2dec: initialize pkt->pos for image pipes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.5
Michael Niedermayer
11 years ago
parent
2497914a18
commit
6d35aba167
3 changed files
with
5 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
libavformat/img2dec.c
+1
-1
tests/ref/fate/exif-image-tiff
+1
-1
tests/ref/fate/exif-image-webp
+ 3
- 0
libavformat/img2dec.c
View 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]) {
+ 1
- 1
tests/ref/fate/exif-image-tiff
View File
@@ -9,7 +9,7 @@ best_effort_timestamp=0
best_effort_timestamp_time=0.000000
pkt_duration=1
pkt_duration_time=0.040000
pkt_pos=
N/A
pkt_pos=
0
pkt_size=67604
width=200
height=112
+ 1
- 1
tests/ref/fate/exif-image-webp
View File
@@ -9,7 +9,7 @@ best_effort_timestamp=0
best_effort_timestamp_time=0.000000
pkt_duration=1
pkt_duration_time=0.040000
pkt_pos=
N/A
pkt_pos=
0
pkt_size=39276
width=400
height=225
Write
Preview
Loading…
Cancel
Save