diff --git a/content/media/webrtc/MediaEngineWebRTCVideo.cpp b/content/media/webrtc/MediaEngineWebRTCVideo.cpp index 46714277219..debaabfab36 100644 --- a/content/media/webrtc/MediaEngineWebRTCVideo.cpp +++ b/content/media/webrtc/MediaEngineWebRTCVideo.cpp @@ -997,12 +997,7 @@ MediaEngineWebRTCVideoSource::RotateImage(layers::Image* aImage, uint32_t aWidth uint8_t* srcPtr = static_cast(pMem); // Create a video frame and append it to the track. -#ifdef MOZ_WIDGET_GONK - ImageFormat format = ImageFormat::GRALLOC_PLANAR_YCBCR; -#else - ImageFormat format = ImageFormat::PLANAR_YCBCR; -#endif - nsRefPtr image = mImageContainer->CreateImage(format); + nsRefPtr image = mImageContainer->CreateImage(ImageFormat::PLANAR_YCBCR); layers::PlanarYCbCrImage* videoImage = static_cast(image.get()); uint32_t dstWidth;