mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-03 14:36:45 +08:00
- Added r_frame_rate in AVStream to store the real frame rate.
- This stuff could be done in AVCodecContext and the real frame rate calculated in utils.c, but we don't changes in that by now ;) Originally committed as revision 497 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -76,6 +76,7 @@ typedef struct AVFormat {
|
|||||||
typedef struct AVStream {
|
typedef struct AVStream {
|
||||||
int id; /* internal stream id */
|
int id; /* internal stream id */
|
||||||
AVCodecContext codec; /* codec context */
|
AVCodecContext codec; /* codec context */
|
||||||
|
int r_frame_rate; /* real frame rate of the stream */
|
||||||
void *priv_data;
|
void *priv_data;
|
||||||
} AVStream;
|
} AVStream;
|
||||||
|
|
||||||
|
@ -376,6 +376,10 @@ static int mpeg_mux_write_packet(AVFormatContext *ctx, int stream_index,
|
|||||||
}
|
}
|
||||||
|
|
||||||
stream->pts += ticker_tick(&stream->pts_ticker, 1);
|
stream->pts += ticker_tick(&stream->pts_ticker, 1);
|
||||||
|
//if (st->codec.codec_type == CODEC_TYPE_VIDEO)
|
||||||
|
// fprintf(stderr,"\nVideo PTS: %6lld", stream->pts);
|
||||||
|
//else
|
||||||
|
// fprintf(stderr,"\nAudio PTS: %6lld", stream->pts);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user