Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e09a60f7 authored by hany's avatar hany Committed by Steve Kondik
Browse files

stagefright: Set bit_width if ENABLE_AV_ENHANCEMENTS is defined

the compiler failed with error "has no member named bit_width" because bit_width is set only ifdef ENABLE_AV_ENHANCEMENTS

https://github.com/CyanogenMod/android_frameworks_av/blob/cm-11.0/media/libstagefright/AudioPlayer.cpp#L228

Change-Id: I931879f09164482fc09e53a4135d88537b05c7ff
parent f328ac1e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -666,8 +666,8 @@ bool canOffloadStream(const sp<MetaData>& meta, bool hasVideo, const sp<MetaData
    if (!meta->findInt32(kKeySampleBits, &bitWidth)) {
        ALOGV("bits per sample not set, using default %d", bitWidth);
    }
#endif
    info.bit_width = bitWidth;
#endif

    info.stream_type = streamType;
    info.has_video = hasVideo;