OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
232d8a1
)
fix demuxing of Video006.3gp
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 12 Feb 2006 15:06:03 +0000
(15:06 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 12 Feb 2006 15:06:03 +0000
(15:06 +0000)
Originally committed as revision 5006 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/mov.c
patch
|
blob
|
history
diff --git
a/libavformat/mov.c
b/libavformat/mov.c
index
27fcd17
..
fa65100
100644
(file)
--- a/
libavformat/mov.c
+++ b/
libavformat/mov.c
@@
-1722,8
+1722,10
@@
static int mov_read_header(AVFormatContext *s, AVFormatParameters *ap)
sc->time_rate=1;
av_set_pts_info(s->streams[i], 64, sc->time_rate, sc->time_scale);
- assert(s->streams[i]->duration % sc->time_rate == 0);
- s->streams[i]->duration /= sc->time_rate;
+ if(s->streams[i]->duration != AV_NOPTS_VALUE){
+ assert(s->streams[i]->duration % sc->time_rate == 0);
+ s->streams[i]->duration /= sc->time_rate;
+ }
sc->ffindex = i;
sc->is_ff_stream = 1;