X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fmovenchint.c;h=9c4ddeb3720daaa48ece9e9777c34f86fc94c2f1;hb=b7e9eea31f3e60dc506cf52bb78f0d9f679cb3bd;hp=1ee59877d26fd56a926aea9f02cb90999b61cb5c;hpb=d0ad91c258821708ce21b4ae53018922ef1f5614;p=ffmpeg diff --git a/libavformat/movenchint.c b/libavformat/movenchint.c index 1ee59877d26..9c4ddeb3720 100644 --- a/libavformat/movenchint.c +++ b/libavformat/movenchint.c @@ -43,9 +43,9 @@ int ff_mov_init_hinting(AVFormatContext *s, int index, int src_index) track->enc->codec_type = AVMEDIA_TYPE_DATA; track->enc->codec_tag = track->tag; - track->rtp_ctx = ff_rtp_chain_mux_open(s, src_st, NULL, - RTP_MAX_PACKET_SIZE); - if (!track->rtp_ctx) + ret = ff_rtp_chain_mux_open(&track->rtp_ctx, s, src_st, NULL, + RTP_MAX_PACKET_SIZE); + if (ret < 0) goto fail; /* Copy the RTP AVStream timebase back to the hint AVStream */