diff options
author | deva <deva> | 2008-03-17 09:32:12 +0000 |
---|---|---|
committer | deva <deva> | 2008-03-17 09:32:12 +0000 |
commit | 402fc59225bd9ee3bea39040bfed20dcfbcb0e21 (patch) | |
tree | 530a42fd3ecc60def61dbf79b5643ca56668ff17 /miavd/ffoutput.cc | |
parent | 2f10a73cbbe4333e2a41e87a94eda7fb3d442dc5 (diff) |
Removed some warnings and made things work with older ffmpeg. (Missing INT64_C).
Diffstat (limited to 'miavd/ffoutput.cc')
-rw-r--r-- | miavd/ffoutput.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/miavd/ffoutput.cc b/miavd/ffoutput.cc index 963e694..f8d0b20 100644 --- a/miavd/ffoutput.cc +++ b/miavd/ffoutput.cc @@ -321,13 +321,13 @@ void FFOutput::writeFrame(FFFrame *frame) if(frame == NULL) return; int ret = 0; int stream_index = -1; - int64_t pts; - int64_t dts; - int pos = 0; + int64_t pts = 0; + //int64_t dts; + //int pos = 0; // printf("Now: %lld\n", av_gettime()); - if(frame->pts == AV_NOPTS_VALUE) frame->pts = av_gettime(); + if((uint64_t)frame->pts == AV_NOPTS_VALUE) frame->pts = av_gettime(); if(frame->pts == 0) frame->pts = av_gettime(); switch(frame->codec_context->codec->type) { @@ -358,7 +358,7 @@ void FFOutput::writeFrame(FFFrame *frame) } // printf("Now: %lld\n", av_gettime()); - if(pts == AV_NOPTS_VALUE) pts = av_gettime(); + if((uint64_t)pts == AV_NOPTS_VALUE) pts = av_gettime(); if(pts == 0) pts = av_gettime(); if(ret > 0){ |