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:
4109400
)
return 0 as stream index if only one stream, this is completely non standard, fix...
author
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Mon, 2 Oct 2006 13:22:51 +0000
(13:22 +0000)
committer
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Mon, 2 Oct 2006 13:22:51 +0000
(13:22 +0000)
Originally committed as revision 6528 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/mxf.c
patch
|
blob
|
history
diff --git
a/libavformat/mxf.c
b/libavformat/mxf.c
index
2d67391
..
d0fb2f0
100644
(file)
--- a/
libavformat/mxf.c
+++ b/
libavformat/mxf.c
@@
-214,7
+214,8
@@
static int mxf_get_stream_index(AVFormatContext *s, KLVPacket *klv)
if (!memcmp(klv->key + sizeof(mxf_essence_element_key), track->track_number, sizeof(track->track_number)))
return i;
}
- return -1;
+ /* return 0 if only one stream, for OP Atom files with 0 as track number */
+ return s->nb_streams == 1 ? 0 : -1;
}
static int mxf_read_packet(AVFormatContext *s, AVPacket *pkt)