summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-04-29 11:16:03 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-05-03 18:47:16 +0200
commitae344b2c5e2861af21f1a15f07bd931b1415eeff (patch)
treee88ab9e43ec579866f25158b29693c64e70c9924
parente296f1b1c4f0b8d4d33f83036a80fd602aca7dea (diff)
downloadffmpeg-streaming-ae344b2c5e2861af21f1a15f07bd931b1415eeff.zip
ffmpeg-streaming-ae344b2c5e2861af21f1a15f07bd931b1415eeff.tar.gz
ffmpeg: use AVFrame accessor.
-rw-r--r--ffmpeg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index f395a44..ff02d8d 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2570,7 +2570,7 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int
AVFrame *decoded_frame;
void *buffer_to_free = NULL;
int i, ret = 0, resample_changed;
- int64_t *best_effort_timestamp;
+ int64_t best_effort_timestamp;
AVRational *frame_sample_aspect;
float quality;
@@ -2599,9 +2599,9 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int
return ret;
}
- best_effort_timestamp= av_opt_ptr(avcodec_get_frame_class(), decoded_frame, "best_effort_timestamp");
- if(*best_effort_timestamp != AV_NOPTS_VALUE)
- ist->next_pts = ist->pts = decoded_frame->pts = *best_effort_timestamp;
+ best_effort_timestamp= av_frame_get_best_effort_timestamp(decoded_frame);
+ if(best_effort_timestamp != AV_NOPTS_VALUE)
+ ist->next_pts = ist->pts = decoded_frame->pts = best_effort_timestamp;
pkt->size = 0;
OpenPOWER on IntegriCloud