aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtpdec_h264.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-05-05 00:29:15 +0300
committerMartin Storsjö <martin@martin.st>2012-05-05 03:09:44 +0300
commitb7b7354c336a0e3df8b6e7ca8baebe8750ed0f45 (patch)
treedeab47a2d3230aab60586813fc30d751cc7fec4e /libavformat/rtpdec_h264.c
parent5245adb963e35660a70115c437cd67ea0c398885 (diff)
downloadffmpeg-b7b7354c336a0e3df8b6e7ca8baebe8750ed0f45.tar.gz
rtpdec_h264: Return proper error codes
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpdec_h264.c')
-rw-r--r--libavformat/rtpdec_h264.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c
index 8b56ada397..f3793f5ec6 100644
--- a/libavformat/rtpdec_h264.c
+++ b/libavformat/rtpdec_h264.c
@@ -272,7 +272,7 @@ static int h264_handle_packet(AVFormatContext *ctx,
av_log(ctx, AV_LOG_ERROR,
"Unhandled type (%d) (See RFC for implementation details\n",
type);
- result= -1;
+ result = AVERROR(ENOSYS);
break;
case 28: // FU-A (fragmented nal)
@@ -319,7 +319,7 @@ static int h264_handle_packet(AVFormatContext *ctx,
case 31: // undefined
default:
av_log(ctx, AV_LOG_ERROR, "Undefined type (%d)", type);
- result= -1;
+ result = AVERROR_INVALIDDATA;
break;
}