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:
parent
cec1f8521f
commit
75a6d2da8b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user