sample_muxer: Don't write huge files.

sample_muxer was using the buffer size instead of the frame payload size
when passing frames to the muxer.

BUG=https://code.google.com/p/webm/issues/detail?id=1032

Change-Id: I25578934e8822553e3482ded80eaf22651be85cc
This commit is contained in:
Tom Finegan 2015-07-01 14:26:55 -07:00
parent cec1f8521f
commit 75a6d2da8b

View File

@ -492,7 +492,7 @@ int main(int argc, char* argv[]) {
return EXIT_FAILURE;
mkvmuxer::Frame muxer_frame;
if (!muxer_frame.Init(data, data_len))
if (!muxer_frame.Init(data, frame.len))
return EXIT_FAILURE;
muxer_frame.set_track_number(track_type == Track::kAudio ? aud_track :
vid_track);