Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
transcoding: set AVFrame format, width and height, fixes #2763
ffmpeg 2.6 checks, if format, width and height is set in avcodec_encode_video2 and generates a warning, if they aren't set.
  • Loading branch information
stbenz authored and perexg committed Apr 15, 2015
1 parent f2af011 commit 01a095c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/plumbing/transcoding.c
Expand Up @@ -1211,7 +1211,11 @@ transcoder_stream_video(transcoder_t *t, transcoder_stream_t *ts, th_pkt_t *pkt)
transcoder_stream_invalidate(ts);
goto cleanup;
}


vs->vid_enc_frame->format = octx->pix_fmt;
vs->vid_enc_frame->width = octx->width;
vs->vid_enc_frame->height = octx->height;

vs->vid_enc_frame->pkt_pts = vs->vid_dec_frame->pkt_pts;
vs->vid_enc_frame->pkt_dts = vs->vid_dec_frame->pkt_dts;

Expand Down

0 comments on commit 01a095c

Please sign in to comment.