summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2012-08-09 09:15:48 -0700
committerAndreas Huber <andih@google.com>2012-08-09 13:25:48 -0700
commitb9787142c5f5f8f47e7e35409f4f2ef7112ab72e (patch)
tree3966271224e78b6d8e88da104385a67900890635 /cmds
parent0d27c65ddb5c968baa6db0c26e80f5c451bc52bc (diff)
downloadframeworks_av-b9787142c5f5f8f47e7e35409f4f2ef7112ab72e.zip
frameworks_av-b9787142c5f5f8f47e7e35409f4f2ef7112ab72e.tar.gz
frameworks_av-b9787142c5f5f8f47e7e35409f4f2ef7112ab72e.tar.bz2
Fix static sample table processing, add support for h.263 video.
Change-Id: I5628d3437b5e6f8836d78557fd07ab87e5a914e3
Diffstat (limited to 'cmds')
-rw-r--r--cmds/stagefright/stream.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmds/stagefright/stream.cpp b/cmds/stagefright/stream.cpp
index 8e7861e..ac88d1f 100644
--- a/cmds/stagefright/stream.cpp
+++ b/cmds/stagefright/stream.cpp
@@ -349,7 +349,10 @@ int main(int argc, char **argv) {
size_t len = strlen(argv[1]);
if ((!usemp4 && len >= 3 && !strcasecmp(".ts", &argv[1][len - 3])) ||
- (usemp4 && len >= 4 && !strcasecmp(".mp4", &argv[1][len - 4]))) {
+ (usemp4 && len >= 4 &&
+ (!strcasecmp(".mp4", &argv[1][len - 4])
+ || !strcasecmp(".3gp", &argv[1][len- 4])
+ || !strcasecmp(".3g2", &argv[1][len- 4])))) {
int fd = open(argv[1], O_RDONLY);
if (fd < 0) {