merge in jb-mr2-release history after reset to jb-mr2-dev
diff --git a/include/media/stagefright/MediaMuxer.h b/include/media/stagefright/MediaMuxer.h
index fad319f..c1fdbad 100644
--- a/include/media/stagefright/MediaMuxer.h
+++ b/include/media/stagefright/MediaMuxer.h
@@ -41,12 +41,6 @@
 struct MediaMuxer : public RefBase {
 public:
     // Please update media/java/android/media/MediaMuxer.java if the
-    // SampleFlags is updated.
-    enum SampleFlags {
-        SAMPLE_FLAG_SYNC = 1,
-    };
-
-    // Please update media/java/android/media/MediaMuxer.java if the
     // OutputFormat is updated.
     enum OutputFormat {
         OUTPUT_FORMAT_MPEG_4 = 0,
diff --git a/media/libstagefright/MediaMuxer.cpp b/media/libstagefright/MediaMuxer.cpp
index 388c65b..94ce5de 100644
--- a/media/libstagefright/MediaMuxer.cpp
+++ b/media/libstagefright/MediaMuxer.cpp
@@ -161,7 +161,7 @@
     // Just set the kKeyDecodingTime as the presentation time for now.
     sampleMetaData->setInt64(kKeyDecodingTime, timeUs);
 
-    if (flags & SAMPLE_FLAG_SYNC) {
+    if (flags & MediaCodec::BUFFER_FLAG_SYNCFRAME) {
         sampleMetaData->setInt32(kKeyIsSyncFrame, true);
     }