From d920fcce7d842677249b136739687738ddc2818e Mon Sep 17 00:00:00 2001 From: lummax Date: Wed, 9 Sep 2015 19:38:45 +0200 Subject: [PATCH] examples/transcode-audio: fix compilation error --- examples/transcode-audio.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/transcode-audio.rs b/examples/transcode-audio.rs index 6a3ee93..fc5a8ab 100644 --- a/examples/transcode-audio.rs +++ b/examples/transcode-audio.rs @@ -104,7 +104,8 @@ fn main() { packet.rescale_ts(stream.time_base(), time_base); if transcoder.decoder.decode(&packet, &mut frame).unwrap() { - frame.set_pts(frame.timestamp()); + let timestamp = frame.timestamp(); + frame.set_pts(timestamp); transcoder.filter.get("in").unwrap().source().add(&frame).unwrap(); while let Ok(..) = transcoder.filter.get("out").unwrap().sink().frame(&mut frame) {