Skip to content
Snippets Groups Projects
Commit 0005f9a3 authored by Justin Ruggles's avatar Justin Ruggles
Browse files

sipr: do not needlessly set *data_size to 0 when returning an error

parent 9cb70ce3
No related branches found
No related tags found
No related merge requests found
...@@ -518,8 +518,6 @@ static int sipr_decode_frame(AVCodecContext *avctx, void *datap, ...@@ -518,8 +518,6 @@ static int sipr_decode_frame(AVCodecContext *avctx, void *datap,
av_log(avctx, AV_LOG_ERROR, av_log(avctx, AV_LOG_ERROR,
"Error processing packet: packet size (%d) too small\n", "Error processing packet: packet size (%d) too small\n",
avpkt->size); avpkt->size);
*data_size = 0;
return -1; return -1;
} }
...@@ -530,8 +528,6 @@ static int sipr_decode_frame(AVCodecContext *avctx, void *datap, ...@@ -530,8 +528,6 @@ static int sipr_decode_frame(AVCodecContext *avctx, void *datap,
av_log(avctx, AV_LOG_ERROR, av_log(avctx, AV_LOG_ERROR,
"Error processing packet: output buffer (%d) too small\n", "Error processing packet: output buffer (%d) too small\n",
*data_size); *data_size);
*data_size = 0;
return -1; return -1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment