ffmpeg: fix timestamp tracing
Use ffmpeg functions to format the timestamps. Change-Id: Idd51feb22fc6c5a70e177604eb995ae2d8601cd4 Reviewed-on: https://review.haiku-os.org/663 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
8850049390
commit
9e2c056c27
@@ -1589,11 +1589,12 @@ AVCodecDecoder::_UpdateMediaHeaderForVideoFrame()
|
|||||||
fHeader.u.raw_video.pixel_width_aspect,
|
fHeader.u.raw_video.pixel_width_aspect,
|
||||||
fHeader.u.raw_video.pixel_height_aspect);
|
fHeader.u.raw_video.pixel_height_aspect);
|
||||||
|
|
||||||
TRACE("[v] start_time=%02d:%02d.%02d field_sequence=%lu\n",
|
char timestamp[AV_TS_MAX_STRING_SIZE];
|
||||||
int((fHeader.start_time / 60000000) % 60),
|
av_ts_make_time_string(timestamp,
|
||||||
int((fHeader.start_time / 1000000) % 60),
|
fRawDecodedPicture->best_effort_timestamp, &fCodecContext->time_base);
|
||||||
int((fHeader.start_time / 10000) % 100),
|
|
||||||
fHeader.u.raw_video.field_sequence);
|
TRACE("[v] start_time=%s field_sequence=%lu\n",
|
||||||
|
timestamp, fHeader.u.raw_video.field_sequence);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ extern "C" {
|
|||||||
#include "imgutils.h"
|
#include "imgutils.h"
|
||||||
#include "swresample.h"
|
#include "swresample.h"
|
||||||
#include "swscale.h"
|
#include "swscale.h"
|
||||||
|
#include "timestamp.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user