Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //rescalling before encoding packet and feed to filter
- av_packet_rescale_ts(&packet,
- ifmt_ctx->streams[stream_index]->time_base,
- dec_ctx->time_base);
- //rescalling before av_interleaved_write_frame
- av_packet_rescale_ts(&enc_pkt,
- enc_ctx->time_base,
- ofmt_ctx->streams[enc_pkt.stream_index]->time_base);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement