mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-25 16:53:20 +00:00
crystalhd: Keep NOPTS_VALUE so we know it's not there.
This commit is contained in:
parent
13dbf77b81
commit
0eb836942f
@ -848,8 +848,7 @@ static int crystalhd_decode_packet(AVCodecContext *avctx, const AVPacket *avpkt)
|
|||||||
* avoiding mangling so we need to build a mapping to values
|
* avoiding mangling so we need to build a mapping to values
|
||||||
* we know will not be mangled.
|
* we know will not be mangled.
|
||||||
*/
|
*/
|
||||||
int64_t safe_pts = avpkt->pts == AV_NOPTS_VALUE ? 0 : avpkt->pts;
|
uint64_t pts = opaque_list_push(priv, avpkt->pts);
|
||||||
uint64_t pts = opaque_list_push(priv, safe_pts);
|
|
||||||
if (!pts) {
|
if (!pts) {
|
||||||
ret = AVERROR(ENOMEM);
|
ret = AVERROR(ENOMEM);
|
||||||
goto exit;
|
goto exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user