Patent ID: 6697121
Filing Date: 2004-02-24
Classification: H04N

Abstract:
A synchronous decoding method for AV (Audio/Video) packets, which comprises the steps of:setting an audio PTS (Presentation Time Stamp) to be a synchronization reference to continuously refresh an STC (System Time Clock); providing a Buffer_Size parameter and a Current_PTS parameter and setting their initial values; when a new PTS packet is detected and Buffer_Size is zero setting Current_PTS to be the PTS value of the new packet and setting Buffer_Size to be the size of data in a video buffer to be decoded, while ignoring other PTS values; reducing the magnitude of Buffer_Size by the size of decoded video data each time the decoding of the video data is completed; when the video decoder detects a picture header and thus starts to perform picture decoding, setting the decoded picture PTS value as Current_PTS if Buffer_Size is zero and using the previous PTS value and a frame rate to estimate a PTS value for the picture otherwise; and repeating the previous steps until the video data are over.