Index: media/cast/test/simulator.cc |
diff --git a/media/cast/test/simulator.cc b/media/cast/test/simulator.cc |
index 1e01085dddc6526e7ec37ef8165425271433689c..d63f6e528a199f0c36b81c9336bfb90e9ccf1bcd 100644 |
--- a/media/cast/test/simulator.cc |
+++ b/media/cast/test/simulator.cc |
@@ -218,11 +218,7 @@ |
void AppendYuvToFile(const base::FilePath& path, |
scoped_refptr<media::VideoFrame> frame) { |
// Write YUV420 format to file. |
- std::string header; |
- base::StringAppendF( |
- &header, "FRAME W%d H%d\n", |
- frame->coded_size().width(), |
- frame->coded_size().height()); |
+ std::string header = "FRAME\n"; |
AppendToFile(path, header.data(), header.size()); |
AppendToFile(path, |
reinterpret_cast<char*>(frame->data(media::VideoFrame::kYPlane)), |
@@ -518,7 +514,11 @@ |
LOG(INFO) << "Writing YUV output to file: " << yuv_output_path.value(); |
// Write YUV4MPEG2 header. |
- const std::string header("YUV4MPEG2 W1280 H720 F30000:1001 Ip A1:1 C420\n"); |
+ std::string header; |
+ base::StringAppendF( |
+ &header, "YUV4MPEG2 W%d H%d F30000:1001 Ip A1:1 C420\n", |
+ media_source.get_video_config().width, |
+ media_source.get_video_config().height); |
AppendToFile(yuv_output_path, header.data(), header.size()); |
} |