improved media_header usage

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6420 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper 2004-01-29 23:30:00 +00:00
parent 313aa5fc08
commit a6423eea41

View File

@ -130,6 +130,8 @@ BMediaTrack::ReadFrames(void *out_buffer,
media_header temp_header;
if (!mh)
mh = &temp_header;
else
memset(mh, 0, sizeof(*mh)); // clear it first, as the decoder doesn't set all fields
result = fDecoder->Decode(out_buffer, out_frameCount, mh, info);
if (result == B_OK) {