projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
942de2f
)
indent
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 12 Jul 2008 19:57:57 +0000
(19:57 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 12 Jul 2008 19:57:57 +0000
(19:57 +0000)
Originally committed as revision 14189 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index 4c38aaf3eda199a5359e9f39237a9a7a1344f701..bf9e5d2aa21f6f2c3d97b2cb7275de8202deff33 100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-589,11
+589,11
@@
int av_read_packet(AVFormatContext *s, AVPacket *pkt)
memset(pd->buf+pd->buf_size, 0, AVPROBE_PADDING_SIZE);
if(av_log2(pd->buf_size) != av_log2(pd->buf_size - pkt->size)){
- set_codec_from_probe_data(st, pd, 1);
- if(st->codec->codec_id != CODEC_ID_PROBE){
- pd->buf_size=0;
- av_freep(&pd->buf);
- }
+
set_codec_from_probe_data(st, pd, 1);
+
if(st->codec->codec_id != CODEC_ID_PROBE){
+
pd->buf_size=0;
+
av_freep(&pd->buf);
+
}
}
}
}