[FFmpeg-cvslog] rtpdec: Use AVERROR_PATCHWELCOME instead of AVERROR(ENOSYS) for unimplemented features

Martin Storsjö git at videolan.org
Tue Jun 21 13:42:05 CEST 2016


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Fri Apr 29 20:37:24 2016 +0300| [b55e3633d3f60cf0f51269f25936409b79d2729e] | committer: Martin Storsjö

rtpdec: Use AVERROR_PATCHWELCOME instead of AVERROR(ENOSYS) for unimplemented features

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b55e3633d3f60cf0f51269f25936409b79d2729e
---

 libavformat/rtpdec_h264.c |    2 +-
 libavformat/rtpdec_vp9.c  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c
index d7b39ac..d7c5e15 100644
--- a/libavformat/rtpdec_h264.c
+++ b/libavformat/rtpdec_h264.c
@@ -350,7 +350,7 @@ static int h264_handle_packet(AVFormatContext *ctx, PayloadContext *data,
         av_log(ctx, AV_LOG_ERROR,
                "Unhandled type (%d) (See RFC for implementation details)\n",
                type);
-        result = AVERROR(ENOSYS);
+        result = AVERROR_PATCHWELCOME;
         break;
 
     case 28:                   // FU-A (fragmented nal)
diff --git a/libavformat/rtpdec_vp9.c b/libavformat/rtpdec_vp9.c
index 5049469..9a92b93 100644
--- a/libavformat/rtpdec_vp9.c
+++ b/libavformat/rtpdec_vp9.c
@@ -223,7 +223,7 @@ static int vp9_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_vp9_ctx,
      */
     if (has_ss_data) {
         avpriv_report_missing_feature(ctx, "VP9 scalability structure data");
-        return AVERROR(ENOSYS);
+        return AVERROR_PATCHWELCOME;
     }
 
     /*



More information about the ffmpeg-cvslog mailing list