nvdec: Fix timestamp mismatch on draining frames
authorSeungha Yang <seungha.yang@navercorp.com>
Sun, 18 Aug 2019 06:45:37 +0000 (15:45 +0900)
committerSeungha Yang <seungha.yang@navercorp.com>
Sun, 18 Aug 2019 06:52:32 +0000 (15:52 +0900)
commitf7b2b1b99db38b0bb680f96bafdfd32190c73f5c
tree529c959eb2f4725d6c9bd19ede779cef561e61ee
parenta427b36f7910975f0799cbe5db082ff643105be0
nvdec: Fix timestamp mismatch on draining frames

The internal decoding state must be GST_NVDEC_STATE_PARSE before
calling CuvidParseVideoData(). Otherwise, nvdec will be confused
on decode callback as if the frame is decoding only frame and
the input timestamp of corresponding frame will be ignored.
Eventually one decoded frame will have non-increased PTS.
sys/nvcodec/gstnvdec.c