On 06.05.2015 02:26, Michael Niedermayer wrote:
> On Tue, May 05, 2015 at 11:51:48PM +0200, Andreas Cadhalpun wrote:
>> s->ref_pics[i] is later used as ref argument of interpolate_refplane,
>> where it is dereferenced.
>>
>> If it is NULL, it causes a segmentation fault.
>>
>> Signed-off-by: Andrea
On Tue, May 05, 2015 at 11:51:48PM +0200, Andreas Cadhalpun wrote:
> s->ref_pics[i] is later used as ref argument of interpolate_refplane,
> where it is dereferenced.
>
> If it is NULL, it causes a segmentation fault.
>
> Signed-off-by: Andreas Cadhalpun
> ---
> libavcodec/diracdec.c | 6 ++
On 06.05.2015 00:00, Timothy Gu wrote:
> On Tue, May 5, 2015 at 2:51 PM Andreas Cadhalpun <
> andreas.cadhal...@googlemail.com> wrote:
>>
>> +if (!s->ref_pics[i]) {
>> +av_log(s->avctx, AV_LOG_ERROR, "Reference could not be
>> allocated\n");
>> +return -1;
>> +
On Tue, May 5, 2015 at 2:51 PM Andreas Cadhalpun <
andreas.cadhal...@googlemail.com> wrote:
>
> +if (!s->ref_pics[i]) {
> +av_log(s->avctx, AV_LOG_ERROR, "Reference could not be
> allocated\n");
> +return -1;
> +}
> +
AVERROR(ENOMEM)
Timothy
__
s->ref_pics[i] is later used as ref argument of interpolate_refplane,
where it is dereferenced.
If it is NULL, it causes a segmentation fault.
Signed-off-by: Andreas Cadhalpun
---
libavcodec/diracdec.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/libavcodec/diracdec.c b/libavcodec/