summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/codecs/m4v_h263/enc/M4vH263Encoder.cpp
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-11-09 15:00:00 -0800
committerJames Dong <jdong@google.com>2010-11-09 15:15:50 -0800
commitb2c59c3b3e670575cc0011176ca30e03bfde3e80 (patch)
treeea0870a360966918f84cfe1045178fd61332a9d9 /media/libstagefright/codecs/m4v_h263/enc/M4vH263Encoder.cpp
parent30db2709395c73fb3b4ee334119ceba68c95ab13 (diff)
downloadframeworks_av-b2c59c3b3e670575cc0011176ca30e03bfde3e80.zip
frameworks_av-b2c59c3b3e670575cc0011176ca30e03bfde3e80.tar.gz
frameworks_av-b2c59c3b3e670575cc0011176ca30e03bfde3e80.tar.bz2
Fix missing breaks in the profile/level conversion code in M4vH263 encoder
Change-Id: Icd2cac68ffb0f38acb68b2968bbb36210431482d
Diffstat (limited to 'media/libstagefright/codecs/m4v_h263/enc/M4vH263Encoder.cpp')
-rw-r--r--media/libstagefright/codecs/m4v_h263/enc/M4vH263Encoder.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/media/libstagefright/codecs/m4v_h263/enc/M4vH263Encoder.cpp b/media/libstagefright/codecs/m4v_h263/enc/M4vH263Encoder.cpp
index d5a5313..72611cf 100644
--- a/media/libstagefright/codecs/m4v_h263/enc/M4vH263Encoder.cpp
+++ b/media/libstagefright/codecs/m4v_h263/enc/M4vH263Encoder.cpp
@@ -50,6 +50,7 @@ static status_t ConvertOmxProfileLevel(
profileLevel = CORE_PROFILE_LEVEL2;
break;
}
+ break;
default:
LOGE("Unsupported profile (%d) for H263", omxProfile);
return BAD_VALUE;
@@ -74,7 +75,8 @@ static status_t ConvertOmxProfileLevel(
LOGE("Unsupported level (%d) for MPEG4 simple profile",
omxLevel);
return BAD_VALUE;
- }
+ }
+ break;
case OMX_VIDEO_MPEG4ProfileSimpleScalable:
switch (omxLevel) {
case OMX_VIDEO_MPEG4Level0b:
@@ -91,6 +93,7 @@ static status_t ConvertOmxProfileLevel(
"scalable profile", omxLevel);
return BAD_VALUE;
}
+ break;
case OMX_VIDEO_MPEG4ProfileCore:
switch (omxLevel) {
case OMX_VIDEO_MPEG4Level1:
@@ -104,6 +107,7 @@ static status_t ConvertOmxProfileLevel(
"profile", omxLevel);
return BAD_VALUE;
}
+ break;
case OMX_VIDEO_MPEG4ProfileCoreScalable:
switch (omxLevel) {
case OMX_VIDEO_MPEG4Level1:
@@ -120,6 +124,7 @@ static status_t ConvertOmxProfileLevel(
"scalable profile", omxLevel);
return BAD_VALUE;
}
+ break;
default:
LOGE("Unsupported MPEG4 profile (%d)", omxProfile);
return BAD_VALUE;