* print the codec id a little later when tracing is on, when the id is better
knwon git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22928 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -124,10 +124,6 @@ avCodec::Setup(media_format *ioEncodedFormat, const void *infoBuffer, size_t inf
|
|||||||
if (BMediaFormats().GetCodeFor(*ioEncodedFormat, gCodecTable[i].family, &descr) == B_OK
|
if (BMediaFormats().GetCodeFor(*ioEncodedFormat, gCodecTable[i].family, &descr) == B_OK
|
||||||
&& gCodecTable[i].type == ioEncodedFormat->type)
|
&& gCodecTable[i].type == ioEncodedFormat->type)
|
||||||
{
|
{
|
||||||
PRINT((" codec id = \"%c%c%c%c\"\n", (descr.u.avi.codec >> 24) & 0xff,
|
|
||||||
(descr.u.avi.codec >> 16) & 0xff,
|
|
||||||
(descr.u.avi.codec >> 8) & 0xff,
|
|
||||||
descr.u.avi.codec & 0xff));
|
|
||||||
switch(gCodecTable[i].family) {
|
switch(gCodecTable[i].family) {
|
||||||
case B_WAV_FORMAT_FAMILY:
|
case B_WAV_FORMAT_FAMILY:
|
||||||
cid = descr.u.wav.codec;
|
cid = descr.u.wav.codec;
|
||||||
@@ -151,6 +147,9 @@ avCodec::Setup(media_format *ioEncodedFormat, const void *infoBuffer, size_t inf
|
|||||||
puts("ERR family");
|
puts("ERR family");
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
PRINT((" codec id = \"%c%c%c%c\"\n", (cid >> 24) & 0xff,
|
||||||
|
(cid >> 16) & 0xff, (cid >> 8) & 0xff, cid & 0xff));
|
||||||
|
|
||||||
if (gCodecTable[i].family == descr.family && gCodecTable[i].fourcc == cid) {
|
if (gCodecTable[i].family == descr.family && gCodecTable[i].fourcc == cid) {
|
||||||
fCodec = avcodec_find_decoder(gCodecTable[i].id);
|
fCodec = avcodec_find_decoder(gCodecTable[i].id);
|
||||||
if (!fCodec) {
|
if (!fCodec) {
|
||||||
|
|||||||
Reference in New Issue
Block a user