Commit b7b7354c authored by Martin Storsjö's avatar Martin Storsjö

rtpdec_h264: Return proper error codes

Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 5245adb9
...@@ -272,7 +272,7 @@ static int h264_handle_packet(AVFormatContext *ctx, ...@@ -272,7 +272,7 @@ static int h264_handle_packet(AVFormatContext *ctx,
av_log(ctx, AV_LOG_ERROR, av_log(ctx, AV_LOG_ERROR,
"Unhandled type (%d) (See RFC for implementation details\n", "Unhandled type (%d) (See RFC for implementation details\n",
type); type);
result= -1; result = AVERROR(ENOSYS);
break; break;
case 28: // FU-A (fragmented nal) case 28: // FU-A (fragmented nal)
...@@ -319,7 +319,7 @@ static int h264_handle_packet(AVFormatContext *ctx, ...@@ -319,7 +319,7 @@ static int h264_handle_packet(AVFormatContext *ctx,
case 31: // undefined case 31: // undefined
default: default:
av_log(ctx, AV_LOG_ERROR, "Undefined type (%d)", type); av_log(ctx, AV_LOG_ERROR, "Undefined type (%d)", type);
result= -1; result = AVERROR_INVALIDDATA;
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment