summaryrefslogtreecommitdiff
path: root/libavformat/movenchint.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-05-25 22:26:00 +0300
committerMartin Storsjö <martin@martin.st>2012-05-26 13:35:44 +0300
commit68c813081b48aaa910cd2e7832314a529c4c4a36 (patch)
tree686b6e789214b8092e042c086b616189f16ad125 /libavformat/movenchint.c
parent93cef6f923d9842b647665f3b42342fa71887a18 (diff)
downloadffmpeg-68c813081b48aaa910cd2e7832314a529c4c4a36.tar.gz
rtpenc_chain: Return an error code instead of just a plain pointer
Also check the return value in sapenc. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/movenchint.c')
-rw-r--r--libavformat/movenchint.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/movenchint.c b/libavformat/movenchint.c
index 579d040f64..5ef90f154a 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 */