|
Lines 3395-3401
static switch_status_t av_file_write_video(switch_file_handle_t *handle, switch_
Link Here
|
| 3395 |
context->video_st.width = frame->img->d_w; |
3395 |
context->video_st.width = frame->img->d_w; |
| 3396 |
context->video_st.height = frame->img->d_h; |
3396 |
context->video_st.height = frame->img->d_h; |
| 3397 |
context->video_st.next_pts = switch_time_now() / 1000; |
3397 |
context->video_st.next_pts = switch_time_now() / 1000; |
| 3398 |
if (add_stream(context, &context->video_st, context->fc, &context->video_codec, context->fc->oformat->video_codec, &handle->mm) == SWITCH_STATUS_SUCCESS && |
3398 |
if (add_stream(context, &context->video_st, context->fc, &context->video_codec, |
|
|
3399 |
context->video_codec ? context->video_codec->id : context->fc->oformat->video_codec, |
| 3400 |
&handle->mm) == SWITCH_STATUS_SUCCESS && |
| 3399 |
open_video(context->fc, context->video_codec, &context->video_st) == SWITCH_STATUS_SUCCESS) { |
3401 |
open_video(context->fc, context->video_codec, &context->video_st) == SWITCH_STATUS_SUCCESS) { |
| 3400 |
|
3402 |
|
| 3401 |
char codec_str[256] = ""; |
3403 |
char codec_str[256] = ""; |
| 3402 |
- |
|
|